:root {
    --v2-auth-ink: #111e35;
    --v2-auth-muted: #66768b;
    --v2-auth-line: #d9e3ef;
    --v2-auth-blue: #205fdc;
    --v2-auth-navy: #07162d;
    --v2-auth-paper: #ffffff;
    --v2-auth-danger: #b93e50;
    --v2-auth-success: #177967;
}

* { box-sizing: border-box; }

body.v2-auth-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--v2-auth-ink);
    background:
        radial-gradient(circle at 6% 6%, rgba(80, 180, 234, .27), transparent 28rem),
        radial-gradient(circle at 89% 3%, rgba(87, 118, 222, .17), transparent 31rem),
        linear-gradient(130deg, #f7fbff 0%, #edf4fa 54%, #e9f1fb 100%);
    font-family: "Manrope", "Avenir Next", sans-serif;
}

.v2-auth-body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .45;
    background-image: linear-gradient(rgba(37, 85, 140, .042) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 85, 140, .042) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.v2-auth-shell {
    display: grid;
    min-height: 100vh;
    padding: clamp(22px, 4vw, 56px);
    place-items: center;
}

.v2-auth-back {
    position: fixed;
    top: clamp(18px, 3vw, 34px);
    left: clamp(18px, 3vw, 40px);
    display: inline-flex;
    min-height: 36px;
    padding: 0 11px;
    color: #355574;
    border: 1px solid rgba(174, 196, 219, .82);
    border-radius: 10px;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 8px 22px rgba(35, 71, 110, .07);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    align-items: center;
    gap: 8px;
    transition: .2s ease;
}
.v2-auth-back:hover { color: var(--v2-auth-blue); border-color: #9cbce8; background: #fff; transform: translateY(-1px); }

.v2-auth-card {
    display: grid;
    width: min(100%, 1080px);
    overflow: hidden;
    border: 1px solid rgba(194, 211, 230, .9);
    border-radius: 28px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 28px 75px rgba(23, 54, 88, .16);
    grid-template-columns: minmax(310px, .91fr) minmax(420px, 1.09fr);
}

.v2-auth-aside {
    position: relative;
    isolation: isolate;
    display: flex;
    overflow: hidden;
    min-height: 640px;
    padding: clamp(31px, 4.5vw, 54px);
    color: #edf6ff;
    background:
        linear-gradient(145deg, rgba(56, 136, 217, .22), transparent 42%),
        linear-gradient(159deg, #07172e, #0c3055 63%, #0b6284);
    flex-direction: column;
}

.v2-auth-aside::before,
.v2-auth-aside::after {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    content: "";
}
.v2-auth-aside::before { right: -122px; bottom: -117px; width: 405px; height: 405px; border: 42px solid rgba(120, 199, 247, .11); border-radius: 50%; }
.v2-auth-aside::after { top: 76px; right: -65px; width: 260px; height: 260px; border: 1px solid rgba(159, 222, 255, .21); border-radius: 50%; }

.v2-auth-brand { position: relative; z-index: 1; display: block; width: fit-content; }
.v2-auth-brand img { display: block; width: min(100%, 185px); height: 42px; object-fit: contain; object-position: left center; }
.v2-auth-aside__copy { position: relative; z-index: 1; max-width: 350px; margin: auto 0 0; }
.v2-auth-eyebrow { margin: 0; color: #5baee8; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.v2-auth-aside .v2-auth-eyebrow { color: #a7e4ff; }
.v2-auth-aside h2 { max-width: 10ch; margin: 10px 0 17px; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -.06em; line-height: .99; }
.v2-auth-aside__copy > p:last-child { max-width: 36ch; margin: 0; color: #bdd2e6; font-size: 13px; line-height: 1.7; }

.v2-auth-points { position: relative; z-index: 1; display: grid; margin: 34px 0 0; padding: 0; list-style: none; gap: 11px; }
.v2-auth-points li { display: grid; max-width: 38ch; color: #cce0f0; font-size: 11px; line-height: 1.55; grid-template-columns: 11px 1fr; gap: 9px; }
.v2-auth-points span { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #79d5ff; box-shadow: 0 0 0 5px rgba(121, 213, 255, .12); }
.v2-auth-aside__shapes i { position: absolute; right: -45px; bottom: 92px; width: 260px; height: 2px; background: linear-gradient(90deg, transparent, rgba(117, 215, 255, .82), transparent); transform: rotate(-37deg); }
.v2-auth-aside__shapes b { position: absolute; top: 52%; right: 35px; width: 1px; height: 170px; background: linear-gradient(rgba(121, 213, 255, .52), transparent); transform: rotate(24deg); }
.v2-auth-aside__shapes em { position: absolute; top: 88px; right: 28px; width: 6px; height: 6px; border-radius: 50%; background: #7bd5ff; box-shadow: 0 0 0 8px rgba(123, 213, 255, .1); }

.v2-auth-form-area { display: flex; min-width: 0; padding: clamp(32px, 5vw, 72px); background: rgba(255, 255, 255, .94); flex-direction: column; justify-content: center; }
.v2-auth-form-head { max-width: 480px; }
.v2-auth-form-head h1 { max-width: 17ch; margin: 8px 0 12px; color: var(--v2-auth-ink); font-family: "Space Grotesk", sans-serif; font-size: clamp(31px, 4vw, 44px); font-weight: 600; letter-spacing: -.06em; line-height: 1.02; }
.v2-auth-form-head > p:last-child { margin: 0; color: var(--v2-auth-muted); font-size: 13px; line-height: 1.65; }

.v2-auth-form { display: grid; max-width: 480px; margin-top: 31px; gap: 17px; }
.v2-auth-field { display: grid; gap: 7px; }
.v2-auth-field > span { color: #2e435e; font-size: 11px; font-weight: 800; }
.v2-auth-field input { width: 100%; min-height: 47px; padding: 0 13px; color: var(--v2-auth-ink); border: 1px solid var(--v2-auth-line); border-radius: 11px; outline: 0; background: #fbfdff; font: inherit; font-size: 13px; transition: .2s ease; }
.v2-auth-field input::placeholder { color: #9ba8b8; }
.v2-auth-field input:focus { border-color: #78a6e5; background: #fff; box-shadow: 0 0 0 4px rgba(32, 95, 220, .1); }
.v2-auth-field small { color: #7a899a; font-size: 10px; line-height: 1.45; }
.v2-auth-actions { display: flex; flex-wrap: wrap; margin-top: 3px; align-items: center; justify-content: space-between; gap: 12px; }
.v2-auth-primary { display: inline-flex; min-height: 44px; padding: 0 17px; color: #fff; border: 1px solid #205fdc; border-radius: 11px; background: linear-gradient(135deg, #1c5bd6, #3b7ee9); box-shadow: 0 10px 20px rgba(32, 95, 220, .2); font: inherit; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; gap: 8px; transition: .2s ease; }
.v2-auth-primary:hover { transform: translateY(-1px); box-shadow: 0 13px 25px rgba(32, 95, 220, .28); }
.v2-auth-primary:disabled { cursor: wait; opacity: .64; transform: none; }
.v2-auth-link { color: #265fba; font-size: 11px; font-weight: 800; text-decoration: none; }
.v2-auth-link:hover { color: #123b88; text-decoration: underline; }
.v2-auth-footnote { max-width: 480px; margin: 24px 0 0; padding-top: 17px; color: #77879a; border-top: 1px solid #e7edf4; font-size: 10px; line-height: 1.6; }
.v2-auth-footnote a { color: #285fac; font-weight: 800; text-decoration: none; }

.v2-auth-notice { max-width: 480px; margin-top: 22px; padding: 11px 13px; border: 1px solid #c7d8ef; border-radius: 11px; background: #f4f9ff; color: #204f8f; font-size: 11px; font-weight: 700; line-height: 1.5; }
.v2-auth-notice--error { border-color: #f0bec7; background: #fff4f6; color: var(--v2-auth-danger); }
.v2-auth-notice--success { border-color: #bce4d8; background: #f0fbf7; color: var(--v2-auth-success); }
.v2-auth-check { display: flex; color: #4f6176; font-size: 11px; line-height: 1.45; align-items: flex-start; gap: 10px; }
.v2-auth-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--v2-auth-blue); flex: 0 0 auto; }
.v2-auth-segment { display: grid; padding: 13px; border: 1px solid #dce6f0; border-radius: 12px; background: #f8fbfe; grid-template-columns: 31px 1fr; gap: 10px; }
.v2-auth-segment__mark { display: grid; width: 31px; height: 31px; color: #1f63d9; border-radius: 9px; background: #e6f0ff; font-weight: 900; place-items: center; }
.v2-auth-segment strong, .v2-auth-segment small { display: block; }
.v2-auth-segment strong { color: #213b59; font-size: 11px; }
.v2-auth-segment small { margin-top: 2px; color: #718197; font-size: 10px; line-height: 1.45; }
.v2-auth-code { letter-spacing: .36em; font-family: "Space Grotesk", sans-serif; font-size: 19px !important; font-weight: 700; text-align: center; }
.v2-auth-inline-error { display: none; color: var(--v2-auth-danger); font-size: 10px; font-weight: 700; }
.v2-auth-inline-error.is-visible { display: block; }

@media (max-width: 850px) {
    .v2-auth-card { max-width: 620px; grid-template-columns: 1fr; }
    .v2-auth-aside { min-height: 270px; padding: 27px; }
    .v2-auth-aside__copy { margin: 45px 0 0; }
    .v2-auth-aside h2 { max-width: 20ch; font-size: 34px; }
    .v2-auth-points { display: none; }
    .v2-auth-form-area { padding: 34px 28px 38px; }
}

@media (max-width: 540px) {
    .v2-auth-shell { display: block; padding: 76px 14px 22px; }
    .v2-auth-back { top: 14px; left: 14px; }
    .v2-auth-card { border-radius: 20px; }
    .v2-auth-aside { min-height: 214px; padding: 23px; }
    .v2-auth-aside__copy { margin-top: 35px; }
    .v2-auth-aside h2 { margin-bottom: 8px; font-size: 30px; }
    .v2-auth-aside__copy > p:last-child { font-size: 11px; }
    .v2-auth-form-area { padding: 30px 21px 32px; }
    .v2-auth-form-head h1 { font-size: 30px; }
    .v2-auth-actions { align-items: stretch; }
    .v2-auth-primary { width: 100%; order: -1; }
}
