:root {
    --warm-900: #1e3a5f;
    --warm-700: #2d5a8c;
    --orange-500: #3b78c4;
    --orange-400: #4a8fd4;
    --yellow-300: #a8c8f0;
    --yellow-200: #dce8f8;
    --cream-50: #f8faff;
    --white: #ffffff;
    --ink-900: #1f1f1f;
    --ink-600: #666666;
}

.guest-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.guest-shell__main {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: block;
    padding: 0;
}

.guest-shell__aurora,
.guest-shell__grid {
    display: none;
}

.login-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background:
        linear-gradient(132deg, #1e3a5f 0%, #2d5a8c 30%, #1a4a7a 55%, #243d62 78%, #1e3a5f 100%);
    background-size: 240% 240%;
    animation: warmShift 14s ease-in-out infinite;
}

.login-page::before,
.login-page::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.45;
}

.login-page::before {
    width: 320px;
    height: 320px;
    top: -90px;
    left: -90px;
    background: rgba(74, 143, 212, 0.35);
}

.login-page::after {
    width: 340px;
    height: 340px;
    bottom: -120px;
    right: -100px;
    background: rgba(30, 58, 95, 0.55);
}

@keyframes warmShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.login-page .animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.login-page #bgCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.login-page .particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.login-page .particle {
    position: absolute;
    pointer-events: none;
}

.login-page .particle.falling {
    animation: loginFall 12s linear forwards;
}

@keyframes loginFall {
    0% {
        transform: translateY(-12px) rotate(0deg);
        opacity: 0.06;
    }
    10% {
        opacity: 0.14;
    }
    50% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.login-page .interactive-orb {
    position: fixed;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    display: none;
    filter: blur(1px);
    background: radial-gradient(circle, rgba(168, 200, 240, 0.74), rgba(59, 120, 196, 0.34));
    box-shadow: 0 0 22px rgba(59, 120, 196, 0.4);
}

.login-page .login-flow {
    position: relative;
    z-index: 10;
    width: min(580px, 100% - 32px);
    margin: 0 auto;
    padding: clamp(26px, 4.5vw, 52px) 0 34px;
    display: grid;
    gap: 16px;
}

.login-page .login-section {
    display: flex;
    justify-content: center;
}

.login-page .login-card {
    width: min(100%, 560px);
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 26px 56px rgba(30, 58, 95, 0.32);
    padding: clamp(22px, 4vw, 34px);
    overflow: hidden;
    animation: cardLift 0.55s ease-out;
}

@keyframes cardLift {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-page .login-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #1e3a5f 0%, #3b78c4 46%, #2d5a8c 100%);
}

.login-page .login-card__back {
    margin-bottom: 14px;
}

.login-page .guest-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 11px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #1e3a5f;
    border: 1px solid rgba(59, 120, 196, 0.35);
    background: rgba(220, 232, 248, 0.78);
    transition: transform 0.24s ease, background 0.24s ease;
}

.login-page .guest-back-btn:hover {
    transform: translateY(-2px);
    background: rgba(200, 220, 245, 0.98);
}

.login-page .login-header {
    text-align: center;
    margin-bottom: 18px;
}

.login-page .login-logo,
.login-page .login-logo--fallback {
    width: 92px;
    height: 92px;
    margin: 0 auto 16px;
    border-radius: 18px;
}

.login-page .login-logo {
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(30, 58, 95, 0.28);
}

.login-page .login-logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, #2d5a8c 0%, #3b78c4 100%);
    box-shadow: 0 12px 30px rgba(30, 58, 95, 0.28);
}

.login-page .login-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2d5a8c;
    margin-bottom: 4px;
}

.login-page .login-header h1 {
    margin: 0 0 6px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.95rem, 4.2vw, 2.5rem);
    line-height: 1.1;
    color: #1e3a5f;
}

.login-page .login-header p {
    margin: 0;
    color: var(--ink-600);
    font-size: 14px;
}

.login-page .auth-status {
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 13px;
    background: rgba(220, 232, 248, 0.6);
    border: 1px solid rgba(59, 120, 196, 0.3);
    color: #1e3a5f;
}

.login-page .login-form {
    display: grid;
    gap: 16px;
}

.login-page .login-field {
    display: grid;
    gap: 7px;
}

.login-page .login-field > span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d5a8c;
}

.login-page .login-field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.login-page .login-field__control > i:first-child {
    position: absolute;
    left: 15px;
    font-size: 16px;
    color: #3b78c4;
    pointer-events: none;
}

.login-page .login-field__control input {
    width: 100%;
    border: 2px solid #d4dbe5;
    border-radius: 12px;
    padding: 13px 14px 13px 46px;
    font-size: 14px;
    background: #f8faff;
    color: var(--ink-900);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.login-page .login-field__control input::placeholder {
    color: #8a95a6;
}

.login-page .login-field__control:focus-within input {
    border-color: rgba(59, 120, 196, 0.76);
    box-shadow: 0 0 0 4px rgba(59, 120, 196, 0.14);
    transform: translateY(-1px);
    background: #ffffff;
    outline: none;
}

.login-page .login-field__toggle {
    position: absolute;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #3b78c4;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.login-page .login-field__toggle:hover {
    background: rgba(59, 120, 196, 0.1);
    color: #1e3a5f;
}

.login-page .auth-field__error {
    margin-top: 4px;
    font-size: 12px;
    color: #c53f2f !important;
    display: flex;
    gap: 4px;
    align-items: flex-start;
}

.login-page .login-form__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.login-page .auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #4a5f73;
}

.login-page .auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #2d5a8c;
}

.login-page .auth-form__link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #3b78c4;
    transition: color 0.2s ease;
}

.login-page .auth-form__link:hover {
    color: #1e3a5f;
}

.login-page .auth-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 13px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #1e3a5f 0%, #3b78c4 50%, #2d5a8c 100%);
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.38);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.login-page .auth-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.22);
    transition: left 0.34s ease;
}

.login-page .auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(30, 58, 95, 0.48);
}

.login-page .auth-submit:hover::before {
    left: 100%;
}

.login-page .auth-submit.is-submitting {
    pointer-events: none;
    opacity: 0.84;
}

.login-page .auth-submit.is-submitting::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-page .login-card__footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(59, 120, 196, 0.2);
    display: grid;
    gap: 10px;
}

.login-page .login-card__secure {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #4a5f73;
}

.login-page .login-card__secure i {
    color: #2d5a8c;
    margin-top: 2px;
}

.login-page .login-card__support {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #1e3a5f;
    background: rgba(220, 232, 248, 0.66);
    border: 1px solid rgba(59, 120, 196, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.login-page .login-card__support:hover {
    transform: translateY(-1px);
    background: rgba(200, 220, 245, 0.88);
}

/* FORGOT PASSWORD PAGE */
.forgot-page {
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 241, 148, 0.42) 0, rgba(255, 241, 148, 0) 26%),
        radial-gradient(circle at 88% 84%, rgba(255, 178, 73, 0.34) 0, rgba(255, 178, 73, 0) 30%),
        linear-gradient(132deg, #ff8a1f 0%, #ffba34 24%, #ffe15e 50%, #ffa433 75%, #ffd653 100%);
}

.forgot-page .forgot-flow {
    width: min(620px, 100% - 30px);
}

.forgot-page .forgot-card {
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(162, 93, 39, 0.27);
}

.forgot-page .forgot-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -86px;
    top: -88px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 223, 108, 0.46) 0%, rgba(255, 223, 108, 0) 70%);
    pointer-events: none;
    animation: forgotGlow 6s ease-in-out infinite;
}

.forgot-page .forgot-header h1 {
    color: #8a4a21;
}

.forgot-page .forgot-header p {
    max-width: 440px;
    margin: 0 auto;
    color: #7c6655;
    line-height: 1.45;
}

.forgot-page .forgot-status {
    background: rgba(255, 224, 138, 0.56);
    border-color: rgba(243, 151, 54, 0.4);
    color: #895329;
}

.forgot-page .forgot-form .login-field__control input {
    background: #fffdfa;
}

.forgot-page .forgot-form .login-field__control:focus-within input {
    box-shadow: 0 0 0 4px rgba(255, 204, 88, 0.36), 0 10px 20px rgba(255, 164, 51, 0.13);
}

.forgot-page .forgot-submit {
    background: linear-gradient(135deg, #ff8d1f 0%, #ffbf33 44%, #c77b46 100%);
    box-shadow: 0 14px 30px rgba(186, 108, 47, 0.38);
}

.forgot-page .forgot-submit:hover {
    box-shadow: 0 18px 36px rgba(186, 108, 47, 0.48);
}

.forgot-page .forgot-footer {
    border-top-color: rgba(226, 158, 91, 0.38);
}

@keyframes forgotGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.11);
        opacity: 0.95;
    }
}

/* ACCESS SIMPLE */
.access-simple-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 34px) 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(74, 143, 212, 0.22) 0, rgba(74, 143, 212, 0) 28%),
        radial-gradient(circle at 90% 78%, rgba(30, 58, 95, 0.3) 0, rgba(30, 58, 95, 0) 30%),
        linear-gradient(130deg, #1e3a5f 0%, #2d5a8c 28%, #3b78c4 54%, #243d62 78%, #1a4a7a 100%);
    background-size: 140% 140%, 170% 170%, 260% 260%;
    animation: accessBgShift 14s ease-in-out infinite;
    isolation: isolate;
}

.access-simple-page::before,
.access-simple-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(58px);
    opacity: 0.4;
    z-index: 0;
}

.access-simple-page::before {
    width: clamp(280px, 36vw, 420px);
    height: clamp(280px, 36vw, 420px);
    top: -110px;
    left: -100px;
    background: rgba(74, 143, 212, 0.6);
    animation: accessAuraOne 11s ease-in-out infinite alternate;
}

.access-simple-page::after {
    width: clamp(260px, 34vw, 390px);
    height: clamp(260px, 34vw, 390px);
    bottom: -120px;
    right: -90px;
    background: rgba(15, 30, 53, 0.7);
    animation: accessAuraTwo 10s ease-in-out infinite alternate;
}

@keyframes accessBgShift {
    0% {
        background-position: 0% 50%, 100% 50%, 0% 50%;
    }
    50% {
        background-position: 50% 45%, 55% 70%, 100% 50%;
    }
    100% {
        background-position: 0% 50%, 100% 50%, 0% 50%;
    }
}

@keyframes accessAuraOne {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(26px, 18px, 0) scale(1.15);
    }
}

@keyframes accessAuraTwo {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(-22px, -16px, 0) scale(1.12);
    }
}

.access-simple {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px) clamp(14px, 2vw, 20px);
}

.access-simple::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 22px 58px rgba(150, 86, 39, 0.23);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.access-simple__intro {
    width: 100%;
    text-align: center;
    margin-bottom: 22px;
    padding: 6px 10px;
}

.access-simple__intro h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.03;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.access-simple__intro p {
    margin: 8px 0 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: rgba(220, 232, 248, 0.85);
    letter-spacing: 0.02em;
}

.access-simple__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.access-simple__btn {
    position: relative;
    min-height: 146px;
    border-radius: 20px;
    text-decoration: none;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: #1e3a5f;
    font-weight: 800;
    font-size: 1.02rem;
    box-shadow: 0 14px 30px rgba(30, 58, 95, 0.25);
    border: 2px solid transparent;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(130deg, #1e3a5f 0%, #3b78c4 50%, #2d5a8c 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
    overflow: hidden;
    animation: accessCardFloat 6s ease-in-out infinite;
}

.access-simple__btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(168, 200, 240, 0.46), rgba(255, 255, 255, 0));
    transform: skewX(-24deg);
    transition: left 0.44s ease;
}

.access-simple__btn i {
    font-size: 1.65rem;
    color: #2d5a8c;
    filter: drop-shadow(0 4px 10px rgba(45, 90, 140, 0.24));
    animation: accessIconPulse 2.8s ease-in-out infinite;
}

.access-simple__btn:hover {
    transform: translateY(-5px) scale(1.012);
    box-shadow: 0 24px 42px rgba(30, 58, 95, 0.32);
    filter: saturate(1.09);
    animation-play-state: paused;
}

.access-simple__btn:hover::before {
    left: 160%;
}

.access-simple__btn:focus-visible {
    outline: 3px solid rgba(255, 205, 87, 0.45);
    outline-offset: 2px;
}

.access-simple__btn:nth-child(2) {
    animation-delay: 0.6s;
}

.access-simple__btn:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes accessCardFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes accessIconPulse {
    0%,
    100% {
        transform: scale(1);
        color: #2d5a8c;
    }
    50% {
        transform: scale(1.08);
        color: #3b78c4;
    }
}

@media (max-width: 640px) {
    .login-page .login-flow {
        width: calc(100% - 24px);
        padding-top: 20px;
        gap: 14px;
    }

    .login-page .login-card {
        border-radius: 22px;
        padding: 20px 16px;
    }

    .login-page .login-logo,
    .login-page .login-logo--fallback {
        width: 78px;
        height: 78px;
    }

    .login-page .login-header p {
        font-size: 13px;
    }

    .login-page .login-form__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-page .login-card__support {
        width: 100%;
    }

    .access-simple {
        width: calc(100% - 22px);
        padding-top: 16px;
    }

    .access-simple::before {
        border-radius: 20px;
    }

    .access-simple__grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .access-simple__btn {
        min-height: 120px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page,
    .login-page .login-card,
    .login-page .auth-submit,
    .login-page .particle.falling,
    .access-simple-page,
    .access-simple-page::before,
    .access-simple-page::after,
    .access-simple__btn,
    .access-simple__btn i,
    .forgot-page .forgot-card::after {
        animation: none !important;
        transition: none !important;
    }
}
