.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(900px 700px at 0% 0%, rgba(82, 217, 199, 0.08), transparent 55%),
        radial-gradient(700px 600px at 100% 100%, rgba(201, 242, 77, 0.05), transparent 60%),
        #080b0d;
    overflow-x: hidden;
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 30% 40%, #000, transparent 78%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 100vh;
}

/* ---------------- Visual side ---------------- */
.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px 46px 30px;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 42%),
        radial-gradient(900px 600px at 20% 100%, rgba(82, 217, 199, 0.08), transparent 60%),
        linear-gradient(180deg, #0b1114 0%, #080c0e 100%);
}

.visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 72%);
    pointer-events: none;
}

.auth-visual::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 40%;
    background: linear-gradient(180deg, var(--lime), transparent);
    opacity: 0.4;
}

.visual-top {
    position: relative;
    z-index: 2;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.auth-brand .brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--lime);
    border: 1px solid rgba(201, 242, 77, 0.24);
    border-radius: 10px;
    background: rgba(201, 242, 77, 0.045);
    box-shadow: 0 0 30px -10px rgba(201, 242, 77, 0.55);
}

.auth-brand .brand-mark svg {
    width: 26px;
    height: 26px;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-brand-text strong {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #edf3f6;
}

.auth-brand-text em {
    font-style: normal;
    font-family: var(--font-num);
    font-size: 8px;
    letter-spacing: 0.22em;
    color: var(--dim);
}

.visual-copy {
    position: relative;
    z-index: 2;
    max-width: 580px;
    padding: 40px 0;
}

.visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-num);
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--muted);
    margin-bottom: 24px;
}

.visual-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--lime);
}

.visual-copy h1 {
    font-size: clamp(38px, 4.2vw, 60px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #f3f8fa;
}

.visual-copy h1 i {
    font-style: normal;
    color: transparent;
    background: linear-gradient(100deg, #f3f8fa 10%, var(--lime) 65%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.visual-copy p {
    margin-top: 20px;
    max-width: 460px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
}

.visual-stats {
    display: flex;
    gap: 34px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    max-width: 480px;
}

.visual-stats div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.visual-stats strong {
    font-family: var(--font-num);
    font-size: 19px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.02em;
}

.visual-stats span {
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.04em;
}

.visual-wave {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 60px;
    margin-top: 32px;
    color: rgba(201, 242, 77, 0.6);
}

.visual-wave svg {
    width: 100%;
    height: 100%;
}

.visual-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-family: var(--font-num);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    color: var(--dim);
}

.coil-rings {
    position: absolute;
    right: -18%;
    bottom: -22%;
    width: 760px;
    height: 760px;
    z-index: 1;
    opacity: 0.55;
    pointer-events: none;
}

.coil-rings span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(201, 242, 77, 0.1);
    margin: auto;
    transform-origin: center;
}

.coil-rings span:nth-child(1) {
    width: 100%;
    height: 100%;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.055);
    animation: spin 140s linear infinite;
}

.coil-rings span:nth-child(2) {
    width: 80%;
    height: 80%;
    border-color: rgba(82, 217, 199, 0.12);
    animation: spin 110s linear infinite reverse;
}

.coil-rings span:nth-child(3) {
    width: 60%;
    height: 60%;
    border-color: rgba(201, 242, 77, 0.14);
    border-style: dashed;
    animation: spin 90s linear infinite;
}

.coil-rings span:nth-child(4) {
    width: 40%;
    height: 40%;
    border-color: rgba(255, 255, 255, 0.08);
    animation: spin 70s linear infinite reverse;
}

.coil-rings span:nth-child(5) {
    width: 20%;
    height: 20%;
    border-color: rgba(201, 242, 77, 0.2);
    box-shadow: 0 0 80px -20px rgba(201, 242, 77, 0.35);
}

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

/* ---------------- Form side ---------------- */
.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 46px;
    background:
        radial-gradient(600px 400px at 100% 0%, rgba(201, 242, 77, 0.035), transparent 60%),
        rgba(8, 12, 14, 0.55);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 32px 32px 26px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background:
        radial-gradient(400px 200px at 20% 0%, rgba(82, 217, 199, 0.045), transparent 60%),
        linear-gradient(180deg, #141c21 0%, #0e1418 100%);
    box-shadow:
        0 40px 90px -30px rgba(0, 0, 0, 0.9),
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 0 0 1px rgba(0, 0, 0, 0.4);
    position: relative;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, transparent, rgba(201, 242, 77, 0.65), rgba(82, 217, 199, 0.4), transparent);
}

.auth-panel.is-register .auth-card {
    max-width: 540px;
    padding: 28px 30px 22px;
}

.auth-head {
    margin-bottom: 22px;
}

.auth-kicker {
    display: block;
    font-family: var(--font-num);
    font-size: 8.5px;
    letter-spacing: 0.2em;
    color: var(--dim);
    margin-bottom: 9px;
}

.auth-head h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #f3f8fa;
}

.auth-head p {
    margin-top: 7px;
    font-size: 12px;
    color: var(--muted);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 98, 98, 0.3);
    border-radius: 8px;
    background: var(--red-dim);
    color: #ffb4b4;
    font-size: 11.5px;
    line-height: 1.55;
}

.auth-alert .ic {
    width: 15px;
    height: 15px;
    margin-top: 1px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 12px;
}

.auth-grid .field-full {
    grid-column: 1 / -1;
}

.auth-form .field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-form .field > span {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.field-control {
    position: relative;
    display: flex;
    align-items: center;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.26);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.field-control:focus-within {
    border-color: rgba(201, 242, 77, 0.55);
    background: rgba(0, 0, 0, 0.36);
    box-shadow: 0 0 0 3px rgba(201, 242, 77, 0.07);
}

.field-control > .ic {
    position: absolute;
    left: 13px;
    width: 16px;
    height: 16px;
    color: var(--dim);
    pointer-events: none;
}

.field-control input,
.field-control select {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    outline: none;
    padding: 0 42px 0 40px;
    color: var(--text);
    font-size: 13px;
}

.field-control select {
    appearance: none;
    cursor: pointer;
    padding-right: 26px;
    color: var(--text-2);
}

.field-control select option {
    background: #131a1f;
    color: var(--text);
}

.pw-toggle {
    position: absolute;
    right: 8px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--dim);
    transition: all 0.16s;
}

.pw-toggle:hover, .pw-toggle.is-on {
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.06);
}

.pw-toggle .ic {
    width: 16px;
    height: 16px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: -2px;
}

.checkline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.55;
    cursor: pointer;
}

.checkline input {
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 1px 0 0;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.25);
    position: relative;
    flex: none;
    cursor: pointer;
}

.checkline input:checked {
    background: var(--lime);
    border-color: var(--lime);
}

.checkline input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #111707;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.muted-link {
    font-size: 10px;
    color: var(--dim);
    white-space: nowrap;
}

.auth-form .btn-lg {
    margin-top: 4px;
    height: 47px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 12px;
    color: var(--dim);
    font-family: var(--font-num);
    font-size: 8px;
    letter-spacing: 0.18em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.auth-switch {
    text-align: center;
    font-size: 11.5px;
    color: var(--muted);
}

.auth-switch a {
    color: var(--lime);
    border-bottom: 1px solid rgba(201, 242, 77, 0.35);
    padding-bottom: 1px;
    transition: border-color 0.16s;
}

.auth-switch a:hover {
    border-color: var(--lime);
}

.auth-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    font-family: var(--font-num);
    font-size: 8.5px;
    letter-spacing: 0.08em;
    color: var(--dim);
}

.auth-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--dim);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
    .auth-shell {
        grid-template-columns: 1fr 1fr;
    }
    .auth-visual {
        padding: 32px 34px 26px;
    }
    .visual-copy h1 {
        font-size: 42px;
    }
    .coil-rings {
        right: -40%;
    }
    .auth-panel {
        padding: 34px;
    }
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        display: none;
    }
    .auth-panel {
        min-height: 100vh;
        padding: 28px 20px;
    }
    .auth-card {
        max-width: 460px;
    }
    .auth-panel.is-register .auth-card {
        max-width: 520px;
    }
}

@media (max-width: 560px) {
    .auth-card,
    .auth-panel.is-register .auth-card {
        padding: 24px 18px 20px;
        border-radius: 12px;
    }
    .auth-grid {
        grid-template-columns: 1fr;
    }
    .auth-head h2 {
        font-size: 23px;
    }
    .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
