/* ── Auth screens: login.php, registro.php ──────────────────────────────────
   Always uses the neon/retro dark aesthetic via body.theme-dark (shared.css).
   No body override needed here.
───────────────────────────────────────────────────────────────────────────── */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 18px;
}

/* Brand heading above the card */
.auth-brand {
    font-size: clamp(22px, 4.5vw, 34px);
    letter-spacing: 1.8px;
    margin: 0;
    color: #95f7ff;
    text-shadow:
        0 0 8px rgba(0, 241, 255, 0.8),
        0 0 24px rgba(0, 169, 255, 0.42);
    text-align: center;
}

/* Card container */
.auth-card {
    width: min(420px, 92vw);
    background: var(--neon-card);
    border: 1px solid var(--neon-border);
    border-radius: 14px;
    box-shadow:
        0 8px 24px rgba(2, 10, 20, 0.62),
        inset 0 0 0 1px rgba(0, 241, 255, 0.08);
    padding: 26px 24px 22px;
    position: relative;
}

.auth-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    border: 1px solid rgba(0, 255, 156, 0.14);
    border-radius: 14px;
    mix-blend-mode: screen;
}

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #82f6ff;
    text-shadow: 0 0 8px rgba(0, 241, 255, 0.34);
}

.auth-help {
    margin: 0 0 16px;
    color: var(--neon-muted);
    font-size: 13px;
}

/* Form fields */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.auth-field label {
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--neon-muted);
}

.auth-field input {
    background: rgba(5, 18, 38, 0.72);
    border: 1px solid rgba(0, 241, 255, 0.28);
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
    color: var(--neon-ink);
    font-family: var(--neon-font);
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-field input:focus {
    border-color: var(--neon-accent);
    box-shadow: 0 0 0 2px rgba(0, 241, 255, 0.16);
}

.auth-field input::placeholder {
    color: rgba(127, 214, 223, 0.35);
}

/* Error message */
.auth-error {
    min-height: 18px;
    color: #ff5f7e;
    font-size: 12px;
    margin-top: 4px;
    text-shadow: 0 0 8px rgba(255, 80, 100, 0.4);
}

/* Action row */
.auth-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Submit button */
.auth-submit-btn {
    background: linear-gradient(135deg, rgba(0, 98, 255, 0.95), rgba(0, 241, 255, 0.95));
    border: 1px solid rgba(0, 241, 255, 0.5);
    color: #061223;
    border-radius: 10px;
    padding: 9px 20px;
    font-family: var(--neon-font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 241, 255, 0.3);
    border-color: var(--neon-border-strong);
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer link (registro / volver al login) */
.auth-footer-link {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--neon-muted);
}

.auth-footer-link a {
    color: var(--neon-accent);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer-link a:hover {
    text-shadow: 0 0 8px rgba(0, 241, 255, 0.6);
}

/* Optional label hint */
.auth-optional {
    font-weight: 400;
    color: rgba(127, 214, 223, 0.55);
    font-size: 11px;
}
