/* ═══════════════════════════════════════════════════════════════
   AUTH CENTERED - Minimalista Monocromático con Imagen de Fondo
   ═══════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    background: #000000;
}

/* ── FONDO CON IMAGEN ──────────────────────────────────────── */
.auth-background {
    position: fixed;
    inset: 0;
    z-index: 0; /* Cambiado de -1 a 0 */
    overflow: hidden;
    background: #000000; /* Fondo negro de respaldo */
}

.auth-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../media/admin/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(80%); /* Reducido de 100% a 80% */
    opacity: 0.6; /* Agregado: opacidad para que no compita */
}

/* Overlay oscuro - ESTO FALTABA! */
.auth-bg-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* Oscurece la imagen */
    backdrop-filter: blur(2px);
}

/* Asegura que el contenedor esté por encima del fondo */
.auth-centered-container {
    position: relative;
    z-index: 1; /* Agregado */
}

/* ── CONTENEDOR ─────────────────────────────────────────────── */
.auth-centered-container {
    width: 100%;
    max-width: 437px;
    padding: 1.15rem;
    z-index: 2;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── TARJETA ────────────────────────────────────────────────── */
.auth-card {
    background: rgba(12, 12, 12, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1.7rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
}

.auth-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 1.15rem;
}

/* ── TABS ───────────────────────────────────────────────────── */
.auth-tabs-container {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-tab {
    flex: 1;
    padding: 0.5rem 0.8rem;
    color: #888888;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.auth-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* ── MENSAJES ───────────────────────────────────────────────── */
.auth-message {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    padding: 0.6rem 0.85rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-message-error {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e0e0e0;
}

.auth-message-success {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.auth-message-referral {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #cccccc;
}

.message-icon {
    font-size: 1rem;
}

/* ── FORMULARIO ─────────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.86rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #999999;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.form-label .optional {
    color: #555555;
    font-weight: 400;
    text-transform: none;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
}

.form-input::placeholder {
    color: #555555;
}

.form-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.9);
}

.form-hint {
    font-size: 0.65rem;
    color: #666666;
    margin-top: 0.17rem;
}

.ref-input {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── BOTÓN SUBMIT ───────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.4rem;
    background: linear-gradient(135deg, #ffffff 0%, #d4d4d4 100%);
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transform: scale(0);
    animation: ripple 0.5s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ── FOOTER LINKS ───────────────────────────────────────────── */
.auth-footer-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.auth-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── SOCIAL LOGIN ───────────────────────────────────────────── */
.social-divider {
    display: flex;
    align-items: center;
    gap: 0.86rem;
    margin: 1.4rem 0;
    color: #555555;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-buttons {
    display: flex;
    gap: 0.7rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.7rem;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    color: #ffffff;
}

.social-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: grayscale(100%) brightness(2);
}

/* ── COPYRIGHT ──────────────────────────────────────────────── */
.auth-copyright {
    text-align: center;
    margin-top: 1.15rem;
    padding: 0.58rem;
}

.auth-copyright p {
    font-size: 0.7rem;
    color: #444444;
}

/* ── MODAL ──────────────────────────────────────────────────── */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.25s ease-out;
}

.auth-modal-content {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.7rem;
    width: 90%;
    max-width: 368px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 0.86rem;
}

.modal-text {
    color: #aaaaaa;
    font-size: 0.85rem;
    margin-bottom: 1.15rem;
    line-height: 1.5;
}

.verify-input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.15rem;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
}

.verify-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-centered-container {
        padding: 0.86rem;
    }
    
    .auth-card {
        padding: 1.4rem;
    }
    
    .auth-card-title {
        font-size: 1.15rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}