/* Login page based on the supplied prototype; scoped to this layout. */
body.auth-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #15233b;
    background: #f6faff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.auth-icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-page { display: grid; grid-template-columns: minmax(420px, 44%) minmax(0, 1fr); min-height: 100vh; }

.auth-visual {
    min-height: 100vh;
    color: #fff;
    background-color: #102c51;
    background-image: linear-gradient(90deg, rgba(7, 36, 77, .97) 0%, rgba(8, 48, 98, .90) 45%, rgba(8, 49, 98, .48) 100%), url("../images/login-building.avif");
    background-position: center;
    background-size: cover;
}
.auth-visual-content { display: flex; flex-direction: column; min-height: 100vh; padding: 58px clamp(38px, 5vw, 80px); }
.auth-visual-brand { display: inline-flex; align-items: center; gap: 16px; align-self: flex-start; color: #fff; font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.auth-visual-brand:hover { color: #fff; text-decoration: none; }
.auth-visual-brand .app-brand-icon { width: 2.2rem; height: 2.2rem; color: #45a6ff; }
.auth-visual-intro { max-width: 520px; margin-top: clamp(70px, 10vh, 125px); }
.auth-accent-line { width: 60px; height: 5px; margin-bottom: 34px; border-radius: 10px; background: #1596ff; }
.auth-visual-intro h2 { margin: 0 0 24px; color: #fff; font-size: clamp(2.5rem, 3.3vw, 4rem); line-height: 1.08; font-weight: 750; letter-spacing: -.04em; }
.auth-visual-intro > p { max-width: 470px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 1.18rem; line-height: 1.55; }
.auth-features { display: grid; gap: 22px; max-width: 480px; margin-top: 48px; }
.auth-feature { display: flex; align-items: center; gap: 20px; }
.auth-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; flex: 0 0 66px; border-radius: 16px; background: rgba(120, 176, 255, .18); color: #fff; font-size: 1.75rem; backdrop-filter: blur(10px); }
.auth-feature strong, .auth-feature span:not(.auth-feature-icon) { display: block; }
.auth-feature strong { color: #fff; font-size: 1.05rem; font-weight: 650; }
.auth-feature div span { margin-top: 2px; color: rgba(255, 255, 255, .72); font-size: .94rem; }
.auth-visual-dots { display: flex; gap: 10px; margin-top: auto; padding-top: 50px; }
.auth-visual-dots span { width: 36px; height: 5px; border-radius: 10px; background: rgba(255, 255, 255, .25); }
.auth-visual-dots span:first-child { background: #1596ff; }

.auth-form-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: 50px;
    overflow: hidden;
    background: radial-gradient(circle at 82% 20%, rgba(48, 151, 255, .07) 0 180px, transparent 181px), radial-gradient(circle at 18% 88%, rgba(48, 151, 255, .055) 0 150px, transparent 151px), linear-gradient(135deg, #fbfdff, #f4f9ff);
}
.auth-form-side::after { position: absolute; right: -140px; bottom: -200px; width: 480px; height: 480px; border-radius: 50%; background: rgba(51, 147, 255, .035); content: ''; pointer-events: none; }
.auth-login-card { position: relative; z-index: 1; width: min(100%, 590px); padding: clamp(38px, 4vw, 58px); border: 1px solid rgba(216, 227, 241, .85); border-radius: 22px; background: rgba(255, 255, 255, .96); box-shadow: 0 30px 80px rgba(37, 72, 120, .08), 0 4px 18px rgba(37, 72, 120, .04); }
.auth-login-brand { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 0 0 16px; color: #15233b; font-size: 1.8rem; font-weight: 750; text-align: center; }
.auth-login-brand .app-brand-icon { width: 2.1rem; height: 2.1rem; color: #087df2; }
.auth-login-subtitle { max-width: 430px; margin: 0 auto 48px; color: #7183a1; font-size: 1.05rem; line-height: 1.5; text-align: center; }
.auth-login-card .alert { margin-bottom: 24px; border-radius: 10px; }
.auth-login-card .auth-field { margin-bottom: 25px; }
.auth-login-card .auth-label { display: inline-block; margin-bottom: 9px; color: #354764; font-weight: 600; }
.auth-input-wrap { position: relative; }
.auth-input-icon { position: absolute; top: 50%; left: 20px; z-index: 1; color: #7286a5; font-size: 1.2rem; transform: translateY(-50%); pointer-events: none; }
.auth-login-card .form-control.auth-input { height: 58px; padding: 10px 49px 10px 55px; border: 1px solid #dbe5f2; border-radius: 11px; color: #15233b; font-size: 1rem; box-shadow: none; }
.auth-login-card .form-control.auth-input::placeholder { color: #91a1b9; }
.auth-login-card .form-control.auth-input:hover { border-color: #bdd1e9; }
.auth-login-card .form-control.auth-input:focus { border-color: #4ba4ff; box-shadow: 0 0 0 4px rgba(13, 126, 242, .10); }
.auth-login-card .has-error .form-control.auth-input, .auth-login-card .form-control.auth-input.is-invalid { border-color: #dc3545; }
.auth-login-card .auth-error { margin-top: 7px; }
.auth-password-toggle { position: absolute; top: 50%; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: #7184a2; font-size: 1.2rem; transform: translateY(-50%); cursor: pointer; }
.auth-password-toggle:hover, .auth-password-toggle:focus-visible { background: #f2f7fc; color: #087df2; }
.auth-password-toggle .auth-eye { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye { display: block; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-off { display: none; }
.auth-form-options { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 2px 0 27px; }
.auth-remember { display: inline-flex; align-items: center; gap: 9px; }
.auth-remember-label { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: #435572; cursor: pointer; }
.auth-remember-input { width: 20px; height: 20px; margin: 0; accent-color: #087df2; cursor: pointer; }
.auth-forgot { position: relative; color: #087df2; text-align: right; }
.auth-forgot summary { list-style: none; white-space: nowrap; cursor: pointer; }
.auth-forgot summary::-webkit-details-marker { display: none; }
.auth-forgot summary:hover { text-decoration: underline; }
.auth-forgot p { position: absolute; z-index: 2; top: 100%; right: 0; width: min(300px, 75vw); margin: 10px 0 0; padding: 12px 15px; border: 1px solid #dbe5f2; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(37, 72, 120, .12); color: #435572; text-align: left; }
.auth-login-card .auth-login-button { display: flex; align-items: center; justify-content: center; gap: 12px; height: 62px; border: 0; border-radius: 11px; background: linear-gradient(100deg, #087cf0, #0785fa); color: #fff; font-size: 1.15rem; font-weight: 650; box-shadow: 0 8px 20px rgba(8, 125, 242, .18); }
.auth-login-card .auth-login-button:hover, .auth-login-card .auth-login-button:focus { color: #fff; background: linear-gradient(100deg, #0569d0, #087cf0); box-shadow: 0 12px 28px rgba(8, 125, 242, .26); }
.auth-login-button .auth-icon { transition: transform .2s ease; }
.auth-login-button:hover .auth-icon { transform: translateX(5px); }
.auth-divider { display: flex; align-items: center; gap: 18px; margin: 34px 0; color: #94a4ba; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #dbe4ef; content: ''; }
.auth-login-card .auth-code-button, .auth-login-card .auth-code-button:disabled { display: flex; align-items: center; justify-content: center; gap: 9px; height: 58px; border: 0; border-radius: 11px; background: #f3f7fc; color: #60718b; font-weight: 600; opacity: 1; cursor: not-allowed; }
.auth-code-button .auth-icon { color: #087df2; font-size: 1.1rem; }
.auth-copyright { margin: 36px 0 0; color: #9aaac0; font-size: .84rem; text-align: center; }

@keyframes auth-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-visual-brand { animation: auth-fade-in .7s ease both; }
.auth-visual-intro { animation: auth-fade-up .7s .12s ease both; }
.auth-feature { opacity: 0; animation: auth-fade-up .55s ease forwards; }
.auth-feature:nth-child(1) { animation-delay: .25s; }
.auth-feature:nth-child(2) { animation-delay: .35s; }
.auth-feature:nth-child(3) { animation-delay: .45s; }
.auth-feature:nth-child(4) { animation-delay: .55s; }
.auth-login-card { animation: auth-fade-up .65s .1s ease both; }

@media (max-width: 1199.98px) {
    .auth-page { grid-template-columns: 40% 60%; }
    .auth-visual-content { padding: 45px 38px; }
    .auth-visual-intro h2 { font-size: clamp(2.15rem, 3.5vw, 2.65rem); }
    .auth-feature div span { display: none; }
    .auth-feature-icon { width: 54px; height: 54px; flex-basis: 54px; }
    .auth-form-side { padding: 35px; }
}

@media (max-width: 991.98px) {
    .auth-page { display: block; }
    .auth-visual { display: none; }
    .auth-form-side { min-height: 100vh; min-height: 100svh; padding: 24px; }
    .auth-login-card { width: 100%; max-width: 540px; }
}

@media (max-width: 575.98px) {
    .auth-form-side { align-items: flex-start; padding: 20px 16px; background: #f8fbff; }
    .auth-login-card { margin-top: 12px; padding: 32px 22px; border-radius: 18px; }
    .auth-login-brand { font-size: 1.5rem; }
    .auth-login-brand .app-brand-icon { width: 1.7rem; height: 1.7rem; }
    .auth-login-subtitle { margin-bottom: 35px; font-size: .95rem; }
    .auth-login-card .form-control.auth-input { height: 56px; }
    .auth-login-card .auth-login-button { height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-visual-brand, .auth-visual-intro, .auth-feature, .auth-login-card { animation: none; }
    .auth-feature { opacity: 1; }
    .auth-login-button .auth-icon { transition: none; }
}
