/*
 * Registration pages (Views/Registration, layout Views/Shared/_LayoutLogin.cshtml): the rules of the legacy
 * Content/css/login.css ("~/Content/login" bundle of _LayoutLogin) and Content/registration.css those pages used,
 * scoped to the login layout (html.legacy-login) and the registration form (#registration-page).
 */

/* ---- legacy login.css ---- */

html.legacy-login {
    background: url("https://magnipublicresourceseun.blob.core.windows.net/site/plataforma/bg_magni_platfom.jpg") no-repeat center fixed;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

html.legacy-login body {
    background: none !important;
}

html.legacy-login .login-wrapper {
    font-family: "Lato", Helvetica, Arial, sans-serif;
    background: #fff none repeat scroll 0 0;
    border-color: #fff #ededed #ddd;
    border-image: none;
    border-radius: 8px;
    border-style: solid;
    border-width: 1px 1px 2px;
    max-width: 960px;
    min-height: 539px;
    margin: 0 auto;
    margin-top: 5%;
    display: grid;
    grid-template-columns: 434px 1fr;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

html.legacy-login .login-sucess-wrapper {
    grid-template-columns: 434px !important;
    max-width: 434px;
}

html.legacy-login .login-box {
    padding: 10px 35px 30px;
    width: 434px;
    height: calc(100% - 40px);
    margin: 0 auto;
    margin-top: 40px;
}

html.legacy-login .login-wrapper input[type="text"], html.legacy-login .login-wrapper input[type="password"] {
    border: none;
    border-bottom: 1px solid #ccc !important;
    height: 35px;
}

html.legacy-login .logo img {
    margin: 0 auto !important;
    display: block;
}

html.legacy-login input.btn-block[type="submit"], html.legacy-login input.btn-block[type="button"] {
    text-align: center;
    height: 40px;
}

html.legacy-login .logo-registration {
    margin-top: 150px !important;
}

@media only screen and (max-width: 860px) {
    html.legacy-login .login-wrapper {
        width: 434px;
    }
}

/* ---- legacy registration.css ---- */

html.legacy-login body.registration-body {
    color: #3f4046;
    font-family: "Lato", Helvetica, Arial, sans-serif !important;
}

#registration-page .login-box label {
    font-size: 14px;
    font-weight: 200;
}

#registration-page .user-form .form-group, #registration-page .company-form .form-group {
    line-height: 15px;
    margin-top: 0px;
    margin-bottom: 10px;
}

#registration-page .registration input:not([type='checkbox']), #registration-page .registration select {
    height: 30px;
}

#registration-page input[type='checkbox'] {
    margin-right: 5px;
}

#registration-page .login-box {
    width: 440px;
    background-color: #f5f5f5;
    margin-top: 35px;
    margin-bottom: 35px;
}

#registration-page .registration .btn-register {
    margin-top: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    position: relative;
    left: 50%;
    margin-left: -60px;
    background-color: #87B33A;
    border: none;
    color: white;
}

#registration-page .registration .btn.box {
    text-align: center;
    width: 122px;
}

/* Loading spinner while the post runs (legacy ng-class loading) */
#registration-page .registration .btn.loading {
    position: relative;
    text-indent: -9999px;
}

#registration-page .registration .btn.loading:before {
    position: absolute;
    content: url(https://d385xxgpk8p5zy.cloudfront.net/ajax-loader.gif);
    right: 50%;
    margin-right: -16px;
    top: 3px;
    text-indent: 0;
}

/* "Pesquisar NIF" button */
#registration-page .registration .btnSecondaryAction {
    vertical-align: middle;
    height: 30px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0 7px !important;
    background: #FFF;
    color: #87b33a;
    font-size: 11px;
    letter-spacing: normal;
    line-height: 20px;
    float: right !important;
}

#registration-page div.error-field-message > *,
#registration-page div.error-field-message-2 > * {
    font-size: 12px;
    background: #df2428;
    text-align: center;
    color: #FFF !important;
    opacity: 1;
    white-space: normal;
    z-index: 15;
    padding: 2px 10px;
    margin: auto;
    width: 100%;
    display: grid;
}

#registration-page .terms-error[hidden],
#registration-page .recaptcha-error[hidden] {
    display: none;
}

#registration-page .registration-input {
    padding-left: 0%;
    border: 1px solid #ccc !important;
}

#registration-page .confirm-info-text {
    color: #87B33A;
    font-weight: 600;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    #registration-page .logo img {
        max-width: 220px !important;
        margin-top: 0px !important;
    }

    #registration-page #sub-title-register {
        font-size: 15px !important;
        margin-top: 10px;
    }
}
