/* Shared presentation for the public and CBT sign-in screens. */
body.login.login-modern {
    min-height: 100vh;
    margin: 0;
    padding: 28px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #17251f;
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(ellipse at 12% 15%, rgba(216, 179, 91, .22), transparent 34%),
        radial-gradient(ellipse at 90% 88%, rgba(25, 111, 75, .38), transparent 36%),
        linear-gradient(135deg, #062b25 0%, #104c3c 54%, #082c27 100%) !important;
}

.login-modern .backstretch { opacity: 1; }

.login-modern .content > .login-brand {
    margin: -38px -42px 30px;
    padding: 28px 20px 21px;
    border-bottom: 1px solid #e7eee9;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(135deg, #f7faf8, #fff 72%);
    text-align: center;
}

.login-modern .login-brand img {
    display: block;
    width: 94px;
    max-width: 30vw;
    max-height: 94px;
    height: auto;
    margin: 0 auto 10px;
    border-radius: 17px;
    filter: drop-shadow(0 5px 12px rgba(15, 65, 48, .12));
}

.login-modern .login-brand span {
    display: block;
    color: #24664c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}

.login-modern .menu-toggler { display: none; }

.login-modern .content {
    box-sizing: border-box;
    width: min(100%, 490px);
    margin: 0;
    padding: 38px 42px 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 23px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32), 0 5px 18px rgba(0, 0, 0, .1);
    animation: login-card-enter .55s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes login-card-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-modern .content .form-title {
    margin: 0 0 8px;
    color: #17392f !important;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.45px;
}

.login-modern .content .form-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 14px;
    border-radius: 3px;
    background: #c7a34b;
}

.login-modern .content .row { margin-right: 0; margin-left: 0; }
.login-modern .content .form-group { margin: 20px 0; }
.login-modern .content .form-control {
    box-sizing: border-box;
    height: 56px;
    padding: 13px 16px 13px 54px;
    border: 1px solid #d5e1db;
    border-radius: 12px;
    color: #17392f;
    background-color: #f7faf8;
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.login-modern .content .form-control:focus {
    border-color: #237657;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(35, 118, 87, .13), 0 4px 12px rgba(23, 57, 47, .05);
    outline: 0;
}

.login-modern .content .input-icon { position: relative; }
.login-modern .content .input-icon::before {
    position: absolute;
    z-index: 2;
    top: 14px;
    bottom: 14px;
    left: 43px;
    width: 1px;
    background: #dce6e1;
    content: "";
    transition: background .2s ease;
}
.login-modern .content .input-icon:focus-within::before { background: #b7d5c8; }
.login-modern .content .input-icon > i {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 16px;
    width: 20px;
    color: #39785f;
    font-size: 17px;
    text-align: center;
    transition: color .2s ease, transform .2s ease;
}
.login-modern .content .input-icon:focus-within > i { color: #126345; transform: scale(1.06); }
.login-modern .content .form-control::placeholder { color: #81918a; opacity: 1; }
.login-modern .content .form-control:hover:not(:focus) { border-color: #b8cbc1; background: #fff; }
.login-modern .content input:-webkit-autofill,
.login-modern .content input:-webkit-autofill:hover,
.login-modern .content input:-webkit-autofill:focus {
    -webkit-text-fill-color: #17392f;
    box-shadow: 0 0 0 1000px #f7faf8 inset;
    transition: background-color 9999s ease-out;
}

.login-modern .content .btn.btn-primary,
.login-modern .content .btn.blue,
.login-modern .content .form_submit {
    display: block;
    float: none !important;
    width: 100%;
    min-height: 50px;
    margin: 8px 0 0;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(110deg, #167650, #0a4936) !important;
    border-color: #0a4936 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(17, 91, 66, .2);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .35px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}

.login-modern .content .btn.btn-primary:hover,
.login-modern .content .btn.blue:hover,
.login-modern .content .form_submit:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 11px 22px rgba(17, 91, 66, .26);
}
.login-modern .content .btn.btn-primary:focus,
.login-modern .content .btn.blue:focus,
.login-modern .content .form_submit:focus {
    color: #fff;
    outline: 3px solid rgba(199, 163, 75, .75);
    outline-offset: 3px;
}
.login-modern .content .btn.btn-primary:active,
.login-modern .content .btn.blue:active,
.login-modern .content .form_submit:active {
    transform: translateY(1px);
    box-shadow: 0 3px 9px rgba(17, 91, 66, .2);
}
.login-modern .content .btn[disabled],
.login-modern .content .btn[disabled]:hover {
    cursor: wait;
    filter: grayscale(.2);
    transform: none;
    opacity: .72;
}

.login-modern .content .form-actions {
    margin: 0;
    padding: 0;
}

.login-modern .content .forget-password { margin-top: 19px; text-align: center; }
.login-modern .content .forget-password p { margin: 0; color: #66766f !important; }
.login-modern .content .forget-password a {
    padding: 0;
    color: #17684e;
    font-size: 13px;
    text-decoration: none;
}
.login-modern .content .forget-password a:hover { color: #0b4032; text-decoration: underline; }
.login-modern .content .forget-password a.btn-success {
    display: inline-block;
    margin: 8px 0 0;
    padding: 10px 17px;
    border: 1px solid #c7ddd1;
    border-radius: 9px;
    color: #17684e;
    background: #f2f8f4;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.login-modern .content .forget-password a.btn-success:hover {
    border-color: #a8cbb8;
    color: #0b4935;
    background: #e8f3ec;
    transform: translateY(-1px);
}
.login-modern .content .alert { border-radius: 9px; }
.login-modern .content .text-danger { color: #a52f37 !important; }

.login-modern .content .form-actions .btn.red {
    display: block;
    float: none !important;
    margin: 14px 0 0;
    padding: 10px 0;
    color: #7e3434;
    background: transparent;
    text-align: center;
}
.login-modern .content .form-actions .btn.red a { color: #7e3434 !important; }
.login-modern .copyright {
    display: inline-block;
    position: relative;
    z-index: 2;
    margin: 16px auto 0;
    max-width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, .45) !important;
    border-left: 4px solid #e4c36e !important;
    border-radius: 9px;
    color: #fff !important;
    background: linear-gradient(110deg, rgba(4, 48, 37, .96), rgba(8, 72, 52, .95)) !important;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .3), 0 0 0 1px rgba(4, 39, 31, .25);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.login-modern .content .copyright {
    margin: 22px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #e8eeea;
    color: #74847c !important;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 520px) {
    body.login.login-modern { justify-content: flex-start; padding: 26px 15px 18px; }
    .login-modern .content { padding: 30px 24px 25px; border-radius: 18px; }
    .login-modern .content > .login-brand { margin: -30px -24px 25px; padding: 22px 16px 17px; border-radius: 18px 18px 0 0; }
    .login-modern .content .form-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-modern .content .form-control,
    .login-modern .content .btn,
    .login-modern .content .input-icon > i,
    .login-modern .content .input-icon::before,
    .login-modern .content { transition: none; animation: none; }
}
