/* ===== GENERAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.2); }
}

body {
    /* Fondo negro profundo con un toque radial rojo oscuro */
    background: radial-gradient(circle at center, #1a0202, #000000);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

/* ===== CONTAINER ===== */
.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

/* ===== CARD ===== */
.auth-card {
    background: rgba(20, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    /* Efecto de borde neón rojo */
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.auth-card:hover {
    border-color: #ff0000;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.4);
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.auth-sub {
    margin-top: 6px;
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
}

/* ===== INPUT GROUP ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 13px;
    color: #ff4d4d;
    text-transform: uppercase;
    font-weight: 600;
    margin-left: 5px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.form-group input:focus {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 13px;
    margin-top: 10px;
    border-radius: 12px;
    /* Degradado de rojo vibrante a rojo oscuro */
    background: linear-gradient(90deg, #ff0000, #8b0000);
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
    letter-spacing: 1px;
}

.btn-secondary {
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    margin-top: 12px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff0000;
    color: #ff0000;
}

/* ===== LINKS ===== */
.auth-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
}

.auth-links a {
    color: #888;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

.auth-links a:hover {
    color: #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* ===== OVERLAYS ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.hidden {
    display: none !important;
}

/* ===== MODAL ===== */
.modal-card {
    background: #0a0000;
    padding: 35px;
    border-radius: 20px;
    width: 350px;
    text-align: center;
    border: 2px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-card.small {
    width: 320px;
}

.modal-sub {
    color: #bbb;
    margin-bottom: 20px;
}

.modal-card input {
    width: 100%;
    padding: 13px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    color: #fff;
    outline: none;
    margin-bottom: 15px;
    transition: 0.3s;
}

.modal-card input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.visible {
    display: flex !important;
}