.auth-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ---------- Left: visual panel ---------- */
.auth-visual {
    position: relative;
    background: radial-gradient(120% 100% at 20% 0%, #0F241B 0%, #0B0F0D 62%);
    border-right: 1px solid var(--line);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--emerald);
    position: relative;
    z-index: 2;
}

.auth-visual-body {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.auth-visual-body blockquote {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.35;
    margin: 0 0 40px;
    color: var(--text);
    font-weight: 500;
}

.auth-mini-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.auth-mini-stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--emerald);
}
.auth-mini-stat-label { font-size: 0.88rem; color: var(--text-muted); }

.auth-visual-glow {
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0) 70%);
    bottom: -180px;
    left: -120px;
    z-index: 1;
}

/* ---------- Right: form panel ---------- */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}
.auth-panel-inner {
    width: 100%;
    max-width: 380px;
}

.auth-form-head { margin-bottom: 28px; }
.auth-form-head h1 { font-size: 1.7rem; margin-bottom: 8px; }
.auth-form-head p { margin: 0; font-size: 0.95rem; }

.auth-alert {
    background: rgba(224, 122, 95, 0.12);
    border: 1px solid rgba(224, 122, 95, 0.4);
    color: var(--danger);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field-label { font-size: 0.88rem; color: var(--text-muted); }
.field-hint { font-size: 0.78rem; color: var(--text-muted); }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font-body);
    width: 100%;
}
.field input:focus {
    outline: none;
    border-color: var(--emerald);
}

.field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field-with-action {
    position: relative;
    display: flex;
}
.field-with-action input { flex: 1; padding-right: 64px; }
.field-action {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px 6px;
}
.field-action:hover { color: var(--emerald); }

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

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--emerald); }
.checkbox-terms { line-height: 1.4; }

.auth-link { color: var(--emerald); font-weight: 500; }
.auth-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ---------- Verification code input ---------- */
.code-input {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}
.code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-family: var(--font-display);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
}
.code-digit:focus {
    outline: none;
    border-color: var(--emerald);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 220px; padding: 28px; }
    .auth-visual-body blockquote { font-size: 1.2rem; margin-bottom: 24px; }
    .auth-panel { padding: 32px 24px 56px; }
}

@media (max-width: 400px) {
    .code-digit { width: 40px; height: 50px; font-size: 1.2rem; }
    .field-pair { grid-template-columns: 1fr; }
}
