/* Portal Admin login / landing page redesign */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #212b36;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-main {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

/* Left panel ------------------------------------------------------------- */
.login-left {
    flex: 0 0 640px;
    max-width: 640px;
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    margin-bottom: 26px;
}

.login-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 26px;
    color: #212b36;
}

/* Form fields ------------------------------------------------------------ */
.form-field {
    position: relative;
    border: 1px solid #c4cdd5;
    border-radius: 4px;
    padding: 0 12px;
    margin-bottom: 20px;
    transition: border-color 0.15s ease-in-out;
}

.form-field:focus-within {
    border-color: #5aa9e6;
    box-shadow: 0 0 0 1px #5aa9e6;
}

/* Inline validation error state */
.form-field.has-error {
    border-color: #de3618;
    margin-bottom: 4px;
}

.form-field.has-error:focus-within {
    border-color: #de3618;
    box-shadow: 0 0 0 1px #de3618;
}

.form-field.has-error label {
    color: #de3618;
}

.field-error {
    display: block;
    color: #de3618;
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 20px;
    padding-left: 12px;
}

/* Floating label */
.form-field label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    color: #637381;
    background: #ffffff;
    padding: 0 3px;
    pointer-events: none;
    transition: top 0.12s ease-in-out, font-size 0.12s ease-in-out, color 0.12s ease-in-out;
}

/* Raise the label to the border when focused or filled */
.form-field .text-input:focus + label,
.form-field .text-input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: #637381;
}

.form-field.has-error .text-input:focus + label,
.form-field.has-error .text-input:not(:placeholder-shown) + label {
    color: #de3618;
}

.form-field label .required {
    color: #de3618;
    margin-left: 2px;
}

.form-field .text-input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 16px 0;
    font-size: 14px;
    line-height: 20px;
    color: #212b36;
    background: transparent;
}

.form-field:hover {
    border: 1px solid #777879;
}

.form-field:hover .text-input {
    color: #777879;
}

.form-field.has-toggle .text-input {
    padding-right: 26px;
}

/* Prevent the browser autofill blue/yellow background on pre-filled inputs */
.text-input:-webkit-autofill,
.text-input:-webkit-autofill:hover,
.text-input:-webkit-autofill:focus,
.text-input:-webkit-autofill:active,
.text-input:autofill,
.text-input:autofill:hover,
.text-input:autofill:focus,
.text-input:autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #212b36 !important;
    caret-color: #212b36;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-color 5000s ease-in-out 0s;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #637381;
    line-height: 0;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Forgot password link --------------------------------------------------- */
.forgot-password {
    margin-bottom: 22px;
}

.forgot-password a {
    font-size: 13px;
    color: #2160a8;
    text-decoration: underline;
}

/* Submit button ---------------------------------------------------------- */
.btn-submit {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 4px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: #91c9ec;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.btn-submit:not(:disabled):hover {
    background: #7bbde6;
}

.btn-submit:disabled {
    cursor: default;
}

/* Solid primary button (rendered on an anchor) */
a.btn-submit {
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-primary {
    background: #1a75c2;
}

.btn-primary:not(:disabled):hover {
    background: #155f9e;
}

.login-buttons .btn-submit {
    margin-bottom: 12px;
}

/* Support text ----------------------------------------------------------- */
.login-support {
    margin-top: 22px;
    font-size: 12px;
    line-height: 18px;
    color: #637381;
}

.login-support a {
    color: #2160a8;
    text-decoration: underline;
}

/* Forgot-password page ---------------------------------------------------- */
.login-intro {
    font-size: 13px;
    line-height: 18px;
    color: #637381;
    margin: 0 0 20px;
}

.login-back {
    margin-top: 18px;
    font-size: 13px;
    color: #212b36;
}

.login-back a {
    color: #2160a8;
    text-decoration: underline;
}

/* Messages --------------------------------------------------------------- */
.login-warning {
    margin-bottom: 18px;
    font-size: 13px;
    color: #212b36;
}

/* Right hero panel ------------------------------------------------------- */
.login-right {
    flex: 1 1 auto;
    background-image: url('/Images/Login/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Footer ----------------------------------------------------------------- */
.login-footer {
    flex: 0 0 auto;
    background: #04162e;
    color: #ffffff;
    padding: 14px 24px;
    display: flex;
    justify-content: flex-start;
}

.login-footer .copyright {
    width: 100%;
    text-align: left;
    margin-right: auto;
    font-size: 12px;
    color: #ffffff;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 768px) {
    .login-main {
        flex-direction: column;
    }

    .login-left {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .login-right {
        display: none;
    }
}
