html, body { min-height: 100%; }
body { margin: 0; background: #174b87; }
.login-page { min-height: 100vh; }
.login-shell {
    min-height: 100vh;
    padding: 36px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 58, 105, .94), rgba(45, 111, 181, .88)), url('../images/auth-one-bg.jpg') center/cover fixed;
}
.login-shell::before, .login-shell::after {
    content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: rgba(255,255,255,.055); pointer-events: none;
}
.login-shell::before { top: -230px; right: -110px; }
.login-shell::after { bottom: -280px; left: -120px; width: 520px; height: 520px; }
.login-brand, .login-card, .login-footer { position: relative; z-index: 1; }
.login-brand { text-align: center; color: rgba(255,255,255,.88); margin-bottom: 20px; }
.login-logo { display: block; max-width: 235px; max-height: 76px; object-fit: contain; margin: 0 auto 10px; }
.login-brand p { margin: 0; font-size: .95rem; }
.login-card {
    width: min(100%, 470px); padding: 38px 40px 30px; border-radius: 18px;
    background: #fff; box-shadow: 0 24px 70px rgba(6, 27, 55, .28);
}
.login-card-heading { margin-bottom: 26px; text-align: center; }
.login-eyebrow { color: #3a75c4; font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.login-card-heading h1 { margin: 8px 0 5px; color: #26364a; font-size: 1.65rem; font-weight: 700; }
.login-card-heading p { margin: 0; color: #7b8794; }
.login-card .form-label { color: #37465a; font-weight: 600; font-size: .9rem; }
.login-card .form-control { border-color: #e3e8ef; border-radius: 9px; font-size: .95rem; }
.login-card .form-control:focus { border-color: #75a5e0; box-shadow: 0 0 0 .2rem rgba(58,117,196,.12); }
.login-password-field { position: relative; }
.login-password-field .form-control { padding-right: 48px; }
.login-password-toggle { position: absolute; top: 0; right: 5px; height: 100%; width: 42px; border: 0; background: transparent; color: #77869a; font-size: 1.2rem; }
.login-forgot { color: #3a75c4; font-size: .8rem; text-decoration: none; }
.login-error { position: relative; display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 13px 42px 17px 15px; overflow: hidden; border: 1px solid #f4d7d9; border-left: 3px solid #dc5661; border-radius: 10px; color: #6e3037; background: linear-gradient(115deg, #fff8f8, #fff1f2); box-shadow: 0 5px 16px rgba(150, 48, 58, .08); font-size: .86rem; animation: confirmation-enter .25s ease both; }
.login-error-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #c23d49; background: #ffe2e4; font-size: 1.15rem; }
.login-error-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.login-error-copy strong { color: #9d303b; font-size: .84rem; }
.login-error-copy > span { color: #70535a; }
.login-error-dismiss { position: absolute; top: 8px; right: 8px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 7px; color: #a35b62; background: transparent; font-size: 1.15rem; transition: color .18s ease, background .18s ease; }
.login-error-dismiss:hover, .login-error-dismiss:focus-visible { color: #8f2632; background: #ffe2e4; outline: none; }
.login-error-timer { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: rgba(220, 86, 97, .12); }
.login-error-timer::after { display: block; width: 100%; height: 100%; content: ""; transform-origin: left; background: linear-gradient(90deg, #ef9b63, #dc5661); animation: login-error-countdown 5s linear forwards; }
.login-confirmation { padding: 12px 0 4px; text-align: center; animation: confirmation-enter .45s ease both; }
.confirmation-icon { width: 76px; height: 76px; margin: 0 auto 20px; display: grid; place-items: center; border: 1px solid #d3efdf; border-radius: 50%; color: #21865d; background: linear-gradient(145deg, #effbf4, #dff5e8); box-shadow: 0 8px 24px rgba(33,134,93,.12); }
.confirmation-icon i { font-size: 2.35rem; animation: confirmation-check .4s .15s ease both; }
.login-confirmation h1 { margin: 8px 0 10px; color: #26364a; font-size: 1.55rem; font-weight: 700; }
.confirmation-welcome { margin: 0 auto; max-width: 340px; color: #65758a; line-height: 1.6; }
.confirmation-redirect { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 25px; color: #53657a; font-size: .87rem; }
.confirmation-spinner { width: 16px; height: 16px; border: 2px solid #d9e4ef; border-top-color: #3a75c4; border-radius: 50%; animation: confirmation-spin .8s linear infinite; }
.confirmation-progress { height: 4px; margin-top: 18px; overflow: hidden; border-radius: 4px; background: #edf1f5; }
.confirmation-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #238b63, #51bd89); animation: confirmation-progress 2.2s linear forwards; }
@keyframes confirmation-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes confirmation-check { from { opacity: 0; transform: scale(.65); } to { opacity: 1; transform: scale(1); } }
@keyframes confirmation-spin { to { transform: rotate(360deg); } }
@keyframes confirmation-progress { to { transform: scaleX(1); } }
@keyframes login-error-countdown { to { transform: scaleX(0); } }
.login-submit { margin-top: 23px; border: 0; border-radius: 9px; background: linear-gradient(100deg, #238b63, #2aaa79); box-shadow: 0 8px 18px rgba(35,139,99,.18); }
.login-submit:disabled { opacity: .7; }
.login-signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 22px; color: #7b8794; font-size: .86rem; }
.login-signup a { color: #3a75c4; font-weight: 600; text-decoration: none; }
.login-footer { margin-top: 22px; color: rgba(255,255,255,.74); text-align: center; font-size: .78rem; }
@media (max-width: 575.98px) { .login-card { padding: 30px 22px 24px; } .login-brand { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { .confirmation-icon i, .confirmation-spinner { animation-duration: 1.8s; } .confirmation-progress span { animation-duration: 2.2s; } .login-error-timer::after { animation-duration: 5s; } }
