:root {
    --auth-navy: #071b32;
    --auth-navy-soft: #0c2948;
    --auth-blue: #2769d7;
    --auth-cyan: #2dd4d7;
    --auth-mint: #69f0d0;
    --auth-ink: #12233b;
    --auth-muted: #718096;
    --auth-line: #dfe7f1;
}

.login-page-v2 {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #f7f9fc;
    color: var(--auth-ink);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(470px, .84fr);
    min-height: 100vh;
}

.auth-vision {
    isolation: isolate;
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(32px, 4vw, 60px) clamp(38px, 6vw, 92px);
    background:
        radial-gradient(circle at 73% 26%, rgba(36, 198, 207, .22), transparent 24%),
        radial-gradient(circle at 20% 82%, rgba(39, 105, 215, .22), transparent 31%),
        linear-gradient(145deg, #06182e 0%, #092541 53%, #0b3150 100%);
    color: #fff;
}

.auth-vision::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, .035) 58% 59%, transparent 59% 100%);
    background-size: 190px 100%;
    animation: lightSweep 16s linear infinite;
}

.tech-grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .25;
    background-image:
        linear-gradient(rgba(89, 213, 220, .13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(89, 213, 220, .13) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom right, #000, transparent 78%);
    animation: gridDrift 22s linear infinite;
}

.vision-header,
.vision-footer {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth-brand,
.mobile-auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

.auth-mark {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 15px;
    background: linear-gradient(145deg, #37d4d5, #167fc4);
    box-shadow: 0 16px 36px rgba(0, 11, 28, .32), inset 0 1px rgba(255, 255, 255, .3);
    color: #fff;
    font-weight: 850;
    letter-spacing: -.05em;
}

.auth-mark span {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 24px;
    height: 24px;
    border: 5px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
}

.auth-brand strong,
.mobile-auth-brand strong {
    display: block;
    font-size: 20px;
    letter-spacing: .05em;
}

.auth-brand small,
.mobile-auth-brand small {
    display: block;
    margin-top: 1px;
    color: #9fb8ce;
    font-size: 10px;
    letter-spacing: .025em;
}

.system-live {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 217, 214, .17);
    border-radius: 999px;
    background: rgba(5, 22, 41, .42);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
    color: #b9d1df;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .04em;
    backdrop-filter: blur(10px);
}

.system-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5fe3ba;
    box-shadow: 0 0 0 5px rgba(95, 227, 186, .09), 0 0 16px #5fe3ba;
    animation: statusPulse 2.4s ease-in-out infinite;
}

.vision-copy {
    position: relative;
    z-index: 2;
    width: min(730px, 100%);
    padding: 48px 0;
    animation: enterUp .85s cubic-bezier(.22, 1, .36, 1) both;
}

.vision-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #70dfe1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.vision-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(43px, 5.15vw, 76px);
    font-weight: 760;
    letter-spacing: -.055em;
    line-height: 1.01;
}

.vision-copy h1 span {
    background: linear-gradient(90deg, #66e7dc, #7cb5ff);
    background-clip: text;
    color: transparent;
}

.vision-copy > p {
    max-width: 660px;
    margin: 27px 0 35px;
    color: #b3c8da;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.72;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.capability-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(165, 209, 226, .13);
    border-radius: 14px;
    background: rgba(9, 36, 63, .52);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(12px);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.capability-card:hover {
    transform: translateY(-4px);
    border-color: rgba(87, 219, 217, .35);
    background: rgba(11, 48, 79, .7);
}

.capability-card > span {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    border-radius: 10px;
    background: rgba(45, 212, 215, .11);
    color: #62e1dd;
}

.capability-card strong,
.capability-card small {
    display: block;
}

.capability-card strong {
    overflow: hidden;
    color: #edf8ff;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.capability-card small {
    margin-top: 4px;
    color: #89a7be;
    font-size: 9px;
    line-height: 1.35;
}

.vision-footer {
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #819db3;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.vision-footer i {
    margin-right: 7px;
    color: #47cdd0;
}

.signal-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(72, 213, 214, .13);
    border-radius: 50%;
    animation: orbitRotate 24s linear infinite;
}

.signal-orbit span {
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #42d7d5;
    box-shadow: 0 0 18px #42d7d5;
}

.orbit-one {
    top: 10%;
    right: -170px;
    width: 450px;
    height: 450px;
}

.orbit-two {
    right: 10%;
    bottom: -300px;
    width: 610px;
    height: 610px;
    animation-direction: reverse;
    animation-duration: 34s;
}

.network-node {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6ef0dc;
    box-shadow: 0 0 0 7px rgba(110, 240, 220, .07), 0 0 22px #6ef0dc;
    animation: nodePulse 3s ease-in-out infinite;
}

.node-one { top: 32%; right: 15%; }
.node-two { right: 33%; bottom: 18%; animation-delay: .8s; }
.node-three { top: 19%; left: 36%; animation-delay: 1.6s; }

.auth-access {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: clamp(28px, 4vw, 64px);
    background:
        radial-gradient(circle at 100% 0, rgba(42, 173, 197, .08), transparent 28%),
        linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

.access-wrap {
    width: min(440px, 100%);
    animation: enterUp .75s .12s cubic-bezier(.22, 1, .36, 1) both;
}

.mobile-auth-brand {
    display: none;
    margin-bottom: 36px;
    color: var(--auth-ink);
}

.mobile-auth-brand small { color: var(--auth-muted); }

.access-intro {
    margin-bottom: 30px;
}

.secure-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: #168794;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.secure-label i { font-size: 11px; }

.access-intro h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(32px, 3vw, 40px);
    font-weight: 760;
    letter-spacing: -.035em;
}

.access-intro p {
    margin: 9px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
}

.auth-alert,
.access-assurance,
.demo-access {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 13px;
}

.auth-alert {
    margin: -9px 0 22px;
    padding: 13px 15px;
    border: 1px solid #ffd1d6;
    background: #fff3f4;
    color: #b52d3b;
}

.auth-alert > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    background: #ffe1e4;
}

.auth-alert strong,
.auth-alert small,
.access-assurance strong,
.access-assurance small,
.demo-access strong,
.demo-access small {
    display: block;
}

.auth-alert strong { font-size: 11px; }
.auth-alert small { margin-top: 2px; font-size: 10px; line-height: 1.4; }
.auth-alert-info { border-color: #cce8ed; background: #eef9fa; color: #157783; }
.auth-alert-info > span { background: #dff3f4; }

.auth-field + .auth-field { margin-top: 19px; }

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #34445a;
    font-size: 11px;
    font-weight: 750;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field-label-row label { margin-bottom: 8px; }

.caps-lock {
    visibility: hidden;
    margin-bottom: 7px;
    color: #b27400;
    font-size: 9px;
    font-weight: 700;
    opacity: 0;
    transition: opacity .2s ease;
}

.caps-lock.visible { visibility: visible; opacity: 1; }

.field-control {
    position: relative;
}

.field-control > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #8d9aaa;
    font-size: 13px;
    transition: color .2s ease;
}

.field-control input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 46px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    outline: 0;
    background: #fff;
    box-shadow: 0 4px 14px rgba(22, 49, 76, .025);
    color: var(--auth-ink);
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.field-control input::placeholder { color: #a8b2bf; }

.field-control input:focus {
    transform: translateY(-1px);
    border-color: #3bb9c1;
    box-shadow: 0 0 0 4px rgba(45, 194, 199, .11), 0 8px 22px rgba(22, 49, 76, .06);
}

.field-control:focus-within > i { color: #1697a2; }

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #78879a;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    outline: none;
    background: #edf7f8;
    color: #147f8b;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 17px 0 24px;
    color: #637286;
    font-size: 10px;
}

.remember-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.remember-control > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid #cad5e2;
    border-radius: 5px;
    background: #fff;
    color: transparent;
    font-size: 8px;
    transition: .2s ease;
}

.remember-control input:checked + span {
    border-color: #1f9ca5;
    background: #1f9ca5;
    color: #fff;
}

.remember-control input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(31, 156, 165, .16);
}

.session-note { color: #8b98a8; white-space: nowrap; }
.session-note i { margin-right: 5px; color: #28a6ad; }

.auth-submit {
    position: relative;
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 0 8px 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(100deg, #195ab4, #217bbf 70%, #1b9eaa);
    box-shadow: 0 14px 30px rgba(27, 100, 180, .23);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .01em;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 75%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
    transition: left .65s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(27, 100, 180, .3);
    filter: saturate(1.07);
}

.auth-submit:hover::before { left: 140%; }
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible { outline: 3px solid rgba(36, 164, 179, .25); outline-offset: 3px; }
.auth-submit:disabled { cursor: wait; opacity: .85; }

.submit-icon {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .13);
}

.access-assurance {
    margin-top: 22px;
    padding: 14px 15px;
    border: 1px solid #e3ebf3;
    background: rgba(255, 255, 255, .64);
}

.access-assurance > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: #e9f7f7;
    color: #178e96;
}

.access-assurance strong,
.demo-access strong {
    color: #34445a;
    font-size: 10px;
}

.access-assurance small,
.demo-access small {
    margin-top: 3px;
    color: #7c8999;
    font-size: 9px;
    line-height: 1.45;
}

.demo-access {
    margin-top: 12px;
    padding: 13px 15px;
    background: #eef4fa;
}

.demo-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 8px;
    background: #dfeaf5;
    color: #3e6f9e;
    font-size: 11px;
}

.access-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e4eaf1;
    background: transparent !important;
    box-shadow: none !important;
    color: #94a0af;
    font-size: 8px;
    font-weight: 650;
    letter-spacing: .025em;
}

.access-footer i { margin-right: 5px; color: #6390b8; }

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

@keyframes gridDrift {
    to { background-position: 52px 52px, 52px 52px; }
}

@keyframes lightSweep {
    to { background-position: 380px 0; }
}

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

@keyframes statusPulse {
    50% { opacity: .65; box-shadow: 0 0 0 8px rgba(95, 227, 186, .035), 0 0 10px #5fe3ba; }
}

@keyframes nodePulse {
    50% { transform: scale(1.65); opacity: .5; }
}

@media (max-width: 1180px) {
    .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(430px, .82fr); }
    .auth-vision { padding-inline: 45px; }
    .capability-grid { grid-template-columns: 1fr; max-width: 430px; }
    .capability-card:nth-child(3) { display: none; }
}

@media (max-width: 900px) {
    .auth-shell { display: block; }
    .auth-vision { display: none; }
    .auth-access { min-height: 100svh; padding: 35px 22px; }
    .access-wrap { width: min(460px, 100%); }
    .mobile-auth-brand { display: flex; }
}

@media (max-width: 520px) {
    .auth-access { align-items: start; padding: 25px 18px; }
    .mobile-auth-brand { margin-bottom: 34px; }
    .access-intro { margin-bottom: 25px; }
    .auth-options { align-items: flex-start; flex-direction: column; }
    .access-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (max-height: 760px) and (min-width: 901px) {
    .auth-access { padding-block: 24px; }
    .access-intro { margin-bottom: 20px; }
    .access-assurance { margin-top: 16px; }
    .demo-access { margin-top: 8px; }
    .access-footer { margin-top: 17px; padding-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
