body.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

/* ── Hero ─────────────────────────────────── */
.auth-hero {
    background: linear-gradient(180deg,
        #06091e 0%, #0d1340 35%,
        #160d3a 65%, #080c18 100%);
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle,
        rgba(59,130,246,0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-hero::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle,
        rgba(168,85,247,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Robot placeholder — reemplazado en Chat 5 */
.mascot-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d1840 0%, #1a2a60 100%);
    border: 2px solid rgba(59,130,246,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mascot-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(59,130,246,0.2);
}

.mascot-eyes {
    display: flex;
    gap: 20px;
}

.eye {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle,
        #fff 0%, #60c0ff 40%, #1a6fff 100%);
    box-shadow: 0 0 10px rgba(59,130,246,0.8);
}

.tor-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.tor-text {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(90deg, #60a5fa, #93c5fd, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.album-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 10px;
    color: #60a5fa;
    opacity: 0.85;
    margin-top: 2px;
}

/* ── Card formulario ──────────────────────── */
.auth-card {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 28px 28px 0 0;
    padding: 32px 24px 40px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 28px;
}

/* ── Inputs ───────────────────────────────── */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    padding: 14px 44px 14px 46px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.input-group input::placeholder { color: var(--text-muted); }
.input-group input:focus { border-color: var(--blue); }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
    pointer-events: none;
}

.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    padding: 4px;
    color: var(--text-primary);
}

/* ── Botón primario ───────────────────────── */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #6d28d9 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.1s;
    -webkit-appearance: none;
}

.btn-primary:active {
    opacity: 0.88;
    transform: scale(0.98);
}

/* ── Footer ───────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--blue);
    font-weight: 600;
}

/* ── Errores inline ───────────────────────── */
.errors-list {
    list-style: none;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 18px;
}

.errors-list li {
    font-size: 13px;
    color: #fca5a5;
    padding: 2px 0;
}

.errors-list li::before { content: '• '; }
