/* ============================================================
   ÁREA CLIENTES / AUTH — Rvolucion
   ============================================================ */
.auth {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
    background: var(--ink);
    overflow: hidden;
}
.auth-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(44,232,245,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,87,34,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
}
.auth-glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.auth-glow-1 { top: -10%; left: 15%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,87,34,0.2), transparent 70%); }
.auth-glow-2 { bottom: -10%; right: 15%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(44,232,245,0.15), transparent 70%); }

/* Tarjeta */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: rgba(13,16,24,0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.auth-card-sm { max-width: 420px; }

.auth-head { text-align: center; margin-bottom: 1.8rem; }
.auth-iso {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: var(--grad-fire);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--ink);
}
.auth-iso .rmark { color: var(--ink); }
.auth-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}
.auth-sub { color: var(--gray); font-size: 0.95rem; }

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0.4rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 1.5rem;
}
.auth-tab {
    flex: 1;
    padding: 0.7rem;
    border-radius: 9px;
    background: transparent;
    border: none;
    color: var(--gray);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.auth-tab.active { background: var(--grad-fire); color: var(--ink); }

/* Alertas */
.auth-alert {
    padding: 0.9rem 1.1rem;
    border-radius: 11px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.3rem;
}
.auth-alert-err { background: rgba(255,87,34,0.1); border: 1px solid rgba(255,87,34,0.3); color: #ffb499; }
.auth-alert-ok { background: rgba(198,242,78,0.1); border: 1px solid rgba(198,242,78,0.3); color: #d4f57e; }

/* Formularios (tabs) */
.auth-form { display: none; }
.auth-form.active { display: block; animation: authFade 0.4s ease; }
@keyframes authFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.auth-field { margin-bottom: 1.1rem; }
.auth-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.auth-opt { color: var(--gray-dim); font-weight: 400; font-size: 0.8rem; }
.auth-field input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 0.85rem 1rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}
.auth-field input:focus { outline: none; border-color: var(--fire); }
.auth-field input::placeholder { color: var(--gray-dim); }
.auth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Toggle de contraseña */
.auth-pass-wrap { position: relative; }
.auth-pass-wrap input { padding-right: 3rem; }
.auth-pass-toggle {
    position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--gray-dim);
    padding: 0.4rem;
    display: flex;
    transition: color 0.2s ease;
}
.auth-pass-toggle:hover { color: var(--fire); }
.auth-pass-toggle svg { width: 20px; height: 20px; }

/* Medidor de fuerza */
.auth-strength {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 50px;
    margin-top: 0.6rem;
    overflow: hidden;
}
.auth-strength span {
    display: block; height: 100%; width: 0;
    border-radius: 50px;
    transition: width 0.3s ease, background 0.3s ease;
}
.auth-strength.s1 span { width: 33%; background: #ff5722; }
.auth-strength.s2 span { width: 66%; background: #ff9a4d; }
.auth-strength.s3 span { width: 100%; background: var(--lime); }

.auth-row { display: flex; justify-content: flex-end; margin-bottom: 1.3rem; }
.auth-link { color: var(--fire); font-size: 0.88rem; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-submit { width: 100%; justify-content: center; margin-top: 0.4rem; }
.auth-terms { text-align: center; color: var(--gray-dim); font-size: 0.78rem; line-height: 1.5; margin-top: 1rem; }

.auth-back { text-align: center; margin-top: 1.5rem; }
.auth-back a { color: var(--gray); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.auth-back a:hover { color: var(--fire); }

@media (max-width: 480px) {
    .auth-card { padding: 1.8rem 1.4rem; }
    .auth-grid2 { grid-template-columns: 1fr; gap: 0; }
}
