:root {
    --login-ink: #11253a;
    --login-muted: #64748b;
    --login-surface: #ffffff;
    --login-line: #dbe5eb;
}

.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.12fr) minmax(470px, 0.88fr);
    background: #f7fafc;
}

.login-story {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 72% 24%, rgba(71, 191, 190, 0.42), transparent 19rem),
        radial-gradient(circle at 20% 87%, rgba(25, 127, 160, 0.4), transparent 25rem),
        linear-gradient(146deg, #0a273f 0%, #0d4760 52%, #0e6b70 100%);
}

.login-story::before,
.login-story::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.login-story::before {
    width: 39rem;
    height: 39rem;
    top: -20rem;
    right: -13rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 0 4.75rem rgba(255, 255, 255, 0.035), 0 0 0 9.5rem rgba(255, 255, 255, 0.025);
}

.login-story::after {
    width: 25rem;
    height: 25rem;
    left: -14rem;
    bottom: -13rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-story__aurora {
    position: absolute;
    width: 23rem;
    height: 9rem;
    border-radius: 100%;
    filter: blur(42px);
    opacity: 0.35;
}

.login-story__aurora--one { background: #5eead4; right: -4rem; top: 47%; transform: rotate(-28deg); }
.login-story__aurora--two { background: #38bdf8; left: 12%; bottom: 17%; transform: rotate(34deg); }

.login-story__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 48rem);
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4.5rem);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.82rem;
    color: inherit;
    text-decoration: none;
}

.login-brand__mark {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    overflow: hidden;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(1, 18, 31, 0.23);
}

.login-brand__mark img { max-width: 79%; max-height: 79%; object-fit: contain; }
.login-brand strong { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
.login-brand small { display: block; max-width: 17rem; margin-top: 0.1rem; color: rgba(255, 255, 255, 0.68); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.login-story__hero { max-width: 37rem; margin: auto 0; padding: 5rem 0 3rem; }
.login-eyebrow,
.login-card__secure,
.demo-login__label {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.login-eyebrow { color: #b8fff2; }
.login-eyebrow i, .login-card__secure i, .demo-login__label i { font-size: 1rem; }

.login-story h1 {
    max-width: 37rem;
    margin: 1rem 0 1.15rem;
    font-size: clamp(2.6rem, 4.3vw, 4.4rem);
    font-weight: 780;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.login-story h1 em { color: #82f7e8; font-style: normal; }
.login-story__hero > p { max-width: 33rem; margin: 0; color: rgba(242, 255, 255, 0.75); font-size: 1.03rem; line-height: 1.68; }

.login-route { position: relative; width: 20rem; height: 5.2rem; margin: 2.8rem 0 1.6rem; }
.login-route__path { position: absolute; top: 2.25rem; right: 1.25rem; left: 1.25rem; border-top: 2px dashed rgba(232, 255, 252, 0.72); transform: rotate(-8deg); }
.login-route__pin { position: absolute; z-index: 1; width: 1rem; height: 1rem; border: 3px solid #eafffb; border-radius: 50%; background: #0f7779; box-shadow: 0 0 0 0.35rem rgba(191, 255, 247, 0.15); }
.login-route__pin--start { left: 0; top: 2.45rem; }
.login-route__pin--end { right: 0; top: 0.75rem; }
.login-route__plane { position: absolute; top: 0.55rem; left: 48%; color: #dffef8; font-size: 2.15rem; transform: rotate(21deg); text-shadow: 0 9px 18px rgba(1, 20, 32, 0.34); }

.login-story__signals { display: flex; flex-wrap: wrap; gap: 0.68rem; }
.login-story__signals span { display: inline-flex; align-items: center; gap: 0.38rem; padding: 0.55rem 0.72rem; border: 1px solid rgba(230, 255, 252, 0.18); border-radius: 999px; background: rgba(1, 29, 46, 0.17); color: rgba(247, 255, 254, 0.86); font-size: 0.77rem; font-weight: 600; backdrop-filter: blur(8px); }
.login-story__signals i { color: #92f5e8; font-size: 0.96rem; }
.login-story__footer { margin: 0; color: rgba(232, 255, 252, 0.58); font-size: 0.75rem; }
.login-story__footer span { padding: 0 0.35rem; color: #9beadd; }

.login-access {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 4rem);
    background: linear-gradient(145deg, #fff 0%, #f6fafc 100%);
}

.login-card { width: min(100%, 28.5rem); }
.login-access__mobile-brand { position: absolute; top: 1.5rem; left: 1.5rem; }
.login-brand--mobile { color: var(--login-ink); }
.login-brand--mobile .login-brand__mark { background: #e9fbf8; box-shadow: none; }

.login-card__topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.3rem; }
.login-card__secure { color: #1b7a74; }
.theme-toggle--auth { width: 2.55rem; height: 2.55rem; border-radius: 0.82rem; color: #355064; background: #fff; box-shadow: 0 7px 22px rgba(15, 48, 70, 0.08); }
.theme-toggle--auth:hover { color: #0d756e; background: #e9faf7; }

.login-card__heading { margin-bottom: 1.85rem; }
.login-card__compass { display: grid; width: 2.9rem; height: 2.9rem; margin-bottom: 1rem; place-items: center; border-radius: 0.9rem; color: #0f766e; background: #def8f3; font-size: 1.45rem; }
.login-card h2 { margin: 0; color: var(--login-ink); font-size: clamp(1.8rem, 3vw, 2.25rem); font-weight: 780; letter-spacing: -0.045em; }
.login-card__heading p { margin: 0.48rem 0 0; color: var(--login-muted); font-size: 0.92rem; }

.login-alert { display: flex; align-items: flex-start; gap: 0.63rem; margin: 0 0 1.15rem; padding: 0.78rem 0.88rem; border: 1px solid; border-radius: 0.8rem; font-size: 0.82rem; line-height: 1.45; }
.login-alert i { font-size: 1.08rem; }
.login-alert--danger { color: #a12f2f; border-color: #fecaca; background: #fff3f3; }
.login-alert--success { color: #08634f; border-color: #a7f3d0; background: #edfff7; }

.demo-login { margin: 0 0 1.25rem; padding: 1rem; border: 1px solid #aee8df; border-radius: 1rem; background: linear-gradient(135deg, #edfffb, #f6fffe); }
.demo-login__label { color: #0b756b; }
.demo-login p { margin: 0.32rem 0 0.85rem; color: #466274; font-size: 0.8rem; line-height: 1.45; }
.demo-login__fill { display: inline-flex; align-items: center; gap: 0.32rem; padding: 0; border: 0; color: #0c766e; background: none; font-size: 0.8rem; font-weight: 800; cursor: pointer; }
.demo-login__fill:hover, .demo-login__fill:focus-visible { color: #075850; text-decoration: underline; }
.demo-login__fill i { font-size: 1rem; }
.demo-login__credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin: 0.8rem 0 0; }
.demo-login__credentials div { min-width: 0; padding: 0.56rem 0.63rem; border-radius: 0.62rem; background: rgba(255, 255, 255, 0.72); }
.demo-login__credentials dt { color: #688293; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.demo-login__credentials dd { margin: 0.15rem 0 0; overflow: hidden; color: #153b4e; font-size: 0.76rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.login-field { margin-top: 1.15rem; }
.login-field label { display: block; margin-bottom: 0.48rem; color: #233c4e; font-size: 0.8rem; font-weight: 760; }
.login-field__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.login-field__label-row a { color: #0b776e; font-size: 0.77rem; font-weight: 750; text-decoration: none; }
.login-field__label-row a:hover, .login-field__label-row a:focus-visible { color: #075b54; text-decoration: underline; }
.login-field__control { display: flex; align-items: center; min-height: 3.25rem; overflow: hidden; border: 1px solid var(--login-line); border-radius: 0.82rem; background: var(--login-surface); transition: border-color 150ms ease, box-shadow 150ms ease; }
.login-field__control > i { flex: 0 0 auto; margin-left: 0.85rem; color: #86a0af; font-size: 1.18rem; }
.login-field__control:focus-within { border-color: #25a99a; box-shadow: 0 0 0 4px rgba(25, 157, 144, 0.13); }
.login-field input { min-width: 0; width: 100%; height: 3.15rem; border: 0; outline: 0; color: var(--login-ink); background: transparent; padding: 0 0.75rem; font-size: 0.9rem; }
.login-field input::placeholder { color: #9aabb5; }
.login-password-toggle { display: grid; flex: 0 0 auto; width: 2.7rem; height: 2.7rem; margin-right: 0.2rem; place-items: center; border: 0; border-radius: 0.65rem; color: #648092; background: transparent; cursor: pointer; }
.login-password-toggle:hover { color: #0c786f; background: #effaf8; }
.login-password-toggle:focus-visible, .demo-login__fill:focus-visible, .login-submit:focus-visible { outline: 3px solid rgba(13, 151, 139, 0.3); outline-offset: 2px; }

.login-remember { display: inline-flex; align-items: center; gap: 0.58rem; margin: 1.1rem 0 1.45rem; color: #5c7281; font-size: 0.8rem; cursor: pointer; }
.login-remember input { width: 1rem; height: 1rem; margin: 0; accent-color: #0f867c; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; min-height: 3.25rem; border: 0; border-radius: 0.82rem; color: #fff; background: linear-gradient(110deg, #087b74, #159b90); box-shadow: 0 14px 24px rgba(11, 120, 111, 0.23); font-size: 0.9rem; font-weight: 780; transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease; }
.login-submit:hover:not(:disabled) { box-shadow: 0 17px 28px rgba(11, 120, 111, 0.31); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: 0.74; }
.login-submit i { font-size: 1.12rem; }
.login-card__help { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 1.35rem 0 0; color: #8497a5; font-size: 0.73rem; text-align: center; }
.login-card__help i { color: #699486; font-size: 0.9rem; }

html[data-bs-theme="dark"] .login-page { background: #061823; }
html[data-bs-theme="dark"] .login-access { background: radial-gradient(circle at 0 0, #163543, #071721 64%); }
html[data-bs-theme="dark"] .login-brand--mobile { color: #e8f3f5; }
html[data-bs-theme="dark"] .theme-toggle--auth, html[data-bs-theme="dark"] .login-field__control { border-color: rgba(148, 190, 201, 0.18); background: rgba(12, 35, 47, 0.78); }
html[data-bs-theme="dark"] .theme-toggle--auth { color: #b4d0d4; box-shadow: none; }
html[data-bs-theme="dark"] .login-card h2, html[data-bs-theme="dark"] .login-field label { color: #e7f4f5; }
html[data-bs-theme="dark"] .login-card__heading p, html[data-bs-theme="dark"] .login-remember, html[data-bs-theme="dark"] .login-card__help { color: #9ab3bd; }
html[data-bs-theme="dark"] .login-field input { color: #f5fcfc; }
html[data-bs-theme="dark"] .login-field__label-row a, html[data-bs-theme="dark"] .login-card__secure { color: #70e6d6; }
html[data-bs-theme="dark"] .demo-login { border-color: rgba(85, 210, 194, 0.33); background: rgba(9, 72, 72, 0.38); }
html[data-bs-theme="dark"] .demo-login__label, html[data-bs-theme="dark"] .demo-login__fill { color: #80efdd; }
html[data-bs-theme="dark"] .demo-login p { color: #b2cbd1; }
html[data-bs-theme="dark"] .demo-login__credentials div { background: rgba(6, 28, 39, 0.44); }
html[data-bs-theme="dark"] .demo-login__credentials dt { color: #82a8b2; }
html[data-bs-theme="dark"] .demo-login__credentials dd { color: #e0f6f4; }
html[data-bs-theme="dark"] .login-alert--danger { border-color: rgba(252, 165, 165, 0.25); background: rgba(115, 31, 35, 0.35); color: #fecaca; }
html[data-bs-theme="dark"] .login-alert--success { border-color: rgba(110, 231, 183, 0.23); background: rgba(5, 93, 68, 0.36); color: #b7f7d6; }

@media (max-width: 991.98px) {
    .login-page { display: block; min-height: 100svh; }
    .login-access { min-height: 100svh; padding: 6.1rem 1.35rem 2rem; }
}

@media (max-width: 420px) {
    .login-access { padding-right: 1rem; padding-left: 1rem; }
    .demo-login__credentials { grid-template-columns: 1fr; }
}
