.auth-view:not([hidden]) {
    height: 100dvh;
    min-height: 0;
}

html:has(.auth-view:not([hidden])),
body:has(.auth-view:not([hidden])) {
    overflow: hidden;
}

.auth-view {
    position: relative;
    isolation: isolate;
    width: min(1160px, calc(100% - 32px));
    min-height: 0;
    margin: 0 auto;
    padding: 18px 0;
    display: grid;
    grid-template-columns: minmax(390px, 470px) minmax(390px, 1fr);
    align-items: center;
    gap: clamp(34px, 5vw, 64px);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-view::before,
.auth-view::after {
    content: "";
    position: fixed;
    z-index: -2;
    pointer-events: none;
}

.auth-view::before {
    inset: 0;
    background:
        radial-gradient(circle at 7% 10%, rgba(74, 142, 255, .34) 0 3px, transparent 4px) 0 0 / 22px 22px no-repeat,
        radial-gradient(ellipse at 83% 22%, rgba(203, 224, 255, .72), transparent 43%),
        radial-gradient(ellipse at 13% 88%, rgba(214, 231, 255, .86), transparent 38%),
        linear-gradient(135deg, #f9fbff 0%, #fff 58%, #f1f7ff 100%);
}

.auth-view::after {
    top: -13vh;
    right: -12vw;
    width: 68vw;
    height: 52vh;
    border-radius: 50%;
    background: rgba(215, 231, 255, .68);
    transform: rotate(-12deg);
}

.auth-card {
    width: 100%;
    max-width: 470px;
    min-height: auto;
    padding: clamp(24px, 3vh, 30px) clamp(28px, 3vw, 36px);
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 80px rgba(24, 76, 150, .14), 0 3px 14px rgba(24, 76, 150, .06);
    animation: auth-rise .55s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes auth-rise {
    from { opacity: 0; transform: translateY(16px); }
}

.auth-brand {
    justify-content: center;
    margin: 0 0 14px;
    color: var(--ink);
    font-family: var(--font-brand);
    font-size: clamp(16px, 1.5vw, 19px);
    font-style: italic;
    font-weight: 800;
    letter-spacing: -.035em;
}

.auth-brand strong { font-weight: 800; }
.auth-brand b { color: var(--blue); font-weight: 800; }
.login-logo-mark { display: grid; place-items: center; color: var(--blue); }
.login-logo-mark svg { width: 44px; height: 44px; stroke-width: 4.5; filter: drop-shadow(0 5px 8px rgba(8, 101, 245, .18)); }

.auth-lock-badge {
    width: 54px;
    height: 54px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: linear-gradient(145deg, #eef6ff, #dae9ff);
}

.auth-lock-badge svg { width: 25px; height: 25px; stroke-width: 1.7; }
.auth-card h1 { max-width: none; font-size: clamp(28px, 3vw, 34px); line-height: 1.05; text-align: center; }
.auth-copy { max-width: 390px; margin: 10px auto 17px; font-size: 13px; line-height: 1.4; text-align: center; }
.auth-form { max-width: none; gap: 10px; }
.auth-form label { font-size: 12px; }

.auth-input-wrap { position: relative; }
.auth-input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    width: 24px;
    height: 24px;
    padding: 3px;
    color: var(--blue);
    border-radius: 5px;
    background: var(--blue-soft);
    transform: translateY(-50%);
}

.auth-input-wrap input {
    height: 48px;
    padding: 12px 16px 12px 55px;
    border: 1.5px solid #aebdd2;
    border-radius: 8px;
    font-size: 14px;
}

.auth-submit {
    position: relative;
    min-height: 50px;
    margin-top: 10px;
    border-radius: 9px;
    font-size: 13px;
    background: linear-gradient(110deg, #0757dd, #0878fa);
    box-shadow: 0 12px 24px rgba(8, 101, 245, .24);
}

.auth-submit > svg { width: 18px; height: 18px; }
.auth-submit-arrow { position: absolute; right: 17px; font-size: 25px; font-weight: 300; line-height: 1; }
.auth-back { width: max-content; margin-bottom: 6px; font-size: 13px; }
.auth-form .otp-input { height: 52px; border-width: 1.5px; font-size: 23px; }

.auth-trust-box,
.security-priority {
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 12px;
    background: linear-gradient(100deg, #f4f8ff, #edf4ff);
}

.auth-trust-box { margin-top: 16px; padding: 10px 14px; }
.auth-trust-box > svg { width: 30px; height: 30px; color: var(--blue); }
.auth-trust-box strong, .auth-trust-box small, .security-priority strong, .security-priority small { display: block; }
.auth-trust-box strong { margin-bottom: 2px; font-size: 12px; }
.auth-trust-box small { color: var(--ink-soft); font-size: 10px; }

.auth-aside {
    position: relative;
    width: 100%;
    max-width: 610px;
    min-height: 510px;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    overflow: visible;
    color: var(--ink);
    background: transparent;
}

.auth-aside::before { display: none; }
.auth-illustration {
    position: relative;
    width: 100%;
    min-height: 340px;
    overflow: hidden;
    border-radius: 50% 50% 26% 26% / 56% 56% 22% 22%;
    background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(179, 210, 255, .52));
}

.auth-sun { position: absolute; top: 55px; left: 23%; width: 55%; height: 250px; border-radius: 50%; background: rgba(209, 228, 255, .72); }
.auth-city { position: absolute; right: 6%; bottom: 74px; left: 11%; height: 150px; display: flex; align-items: flex-end; gap: 10px; opacity: .54; }
.auth-city i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #a4c7fa, #d9e9ff); }
.auth-city i:nth-child(1) { height: 42%; }.auth-city i:nth-child(2) { height: 76%; }.auth-city i:nth-child(3) { height: 55%; }.auth-city i:nth-child(4) { height: 92%; }.auth-city i:nth-child(5) { height: 63%; }

.auth-building { position: absolute; right: 6%; bottom: 42px; width: 55%; height: 105px; border: 3px solid #3f78cc; border-radius: 4px; background: linear-gradient(160deg, #eaf3ff, #a9cbfa); box-shadow: -22px 14px 0 rgba(45, 107, 203, .14); }
.auth-building::before { content: ""; position: absolute; top: -25px; left: -5px; width: 110%; height: 28px; background: #4d82d1; clip-path: polygon(7% 0, 100% 26%, 93% 100%, 0 74%); }
.auth-building span { position: absolute; bottom: 0; width: 24%; height: 65%; border: 3px solid #2866bf; background: #69a0ec; }
.auth-building span:first-child { left: 17%; }.auth-building span:last-child { right: 12%; width: 31%; }

.auth-phone { position: absolute; z-index: 3; bottom: 32px; left: 17%; width: 118px; height: 224px; border: 7px solid #0b274f; border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(112, 169, 247, .58)); box-shadow: 0 20px 30px rgba(18, 65, 128, .24); }
.phone-speaker { position: absolute; top: -2px; left: 35px; width: 57px; height: 12px; border-radius: 0 0 10px 10px; background: #0b274f; }
.phone-glare { position: absolute; inset: 15px; background: linear-gradient(125deg, transparent 28%, rgba(255,255,255,.36) 29% 43%, transparent 44%); }
.auth-code-bubble { position: absolute; z-index: 4; top: 78px; left: 34%; padding: 21px 23px; border-radius: 15px; color: var(--blue); background: #fff; box-shadow: 0 14px 30px rgba(23, 70, 137, .14); font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.auth-code-bubble::after { content: ""; position: absolute; bottom: -17px; left: 25px; border: 18px solid transparent; border-top-color: #fff; border-left: 0; }
.auth-plant { position: absolute; z-index: 4; bottom: 34px; width: 34px; height: 90px; border-bottom: 5px solid #2e70d5; transform-origin: bottom; }
.auth-plant::before, .auth-plant::after { content: ""; position: absolute; width: 25px; height: 48px; border-radius: 90% 12% 90% 12%; background: linear-gradient(145deg, #76aaff, #2264ce); }
.auth-plant::before { left: -18px; top: 12px; transform: rotate(-35deg); }.auth-plant::after { right: -15px; top: 34px; transform: rotate(45deg); }
.plant-left { left: 7%; transform: rotate(-5deg); }.plant-right { right: 4%; transform: scale(.8) rotate(5deg); }

.security-priority p { margin: 0; }
.security-priority { width: min(360px, 76%); margin: 0 auto; padding: 11px 17px; }
.security-priority > svg { width: 28px; height: 28px; color: #164b8c; }
.security-priority strong { margin-bottom: 3px; font-size: 13px; }
.security-priority small { color: var(--ink-soft); font-size: 10px; }
