/* ============================= */


/* LOGIN / REGISTRO PREMIUM */


/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rojo: #E10600;
    --rojo-oscuro: #B00000;
    --negro: #111111;
    --negro-suave: #1A1A1A;
    --blanco: #FFFFFF;
    --gris-fondo: #F7F7F7;
    --gris-borde: #E5E5E5;
    --gris-texto: #666666;
    --gris-label: #2A2A2A;
    --verde: #27AE60;
    --error: #E74C3C;
    --sombra: 0 30px 80px rgba(0, 0, 0, 0.35);
    --sombra-hover: 0 35px 90px rgba(0, 0, 0, 0.45);
    --radio: 18px;
    --transicion: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, rgba(225, 6, 0, 0.18), transparent 30%), radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 20%), linear-gradient(135deg, #111111 0%, #1b1b1b 45%, #E10600 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--blanco);
    border-radius: var(--radio);
    border-top: 5px solid var(--rojo);
    box-shadow: var(--sombra);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    animation: loginFade 0.7s ease;
    transition: var(--transicion);
    position: relative;
}

.auth-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-hover);
}

@keyframes loginFade {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background: linear-gradient(135deg, #111111, #E10600);
    color: white;
    padding: 2.5rem 2rem 2.2rem;
    text-align: center;
    position: relative;
}

.auth-header::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 36px;
    background: white;
    border-radius: 0 0 50px 50px;
}

.auth-logo {
    width: 78px;
    height: 78px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: 0.4px;
}

.auth-subtitle {
    opacity: 0.92;
    font-size: 0.98rem;
    font-weight: 400;
}

.auth-body {
    padding: 2.7rem 2.5rem 2.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.3rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--gris-label);
    font-weight: 700;
    font-size: 0.94rem;
}

.auth-form input {
    width: 100%;
    padding: 0.95rem 0.95rem;
    border: 2px solid var(--gris-borde);
    border-radius: 12px;
    font-size: 1rem;
    background: #FAFAFA;
    transition: var(--transicion);
    color: var(--negro);
}

.auth-form input::placeholder {
    color: #9a9a9a;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--rojo);
    background: var(--blanco);
    box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.12);
}

.auth-form input.error {
    border-color: var(--error);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 70%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 1.05rem;
    transition: var(--transicion);
}

.toggle-password:hover {
    color: var(--rojo);
    transform: translateY(-50%) scale(1.08);
}

.error-message,
.success-message {
    font-size: 0.92rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.error-message {
    color: var(--error);
    background: #FFF1F0;
    border: 1px solid rgba(231, 76, 60, 0.18);
}

.success-message {
    color: var(--verde);
    background: #EEF9F1;
    border: 1px solid rgba(39, 174, 96, 0.18);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--rojo), var(--rojo-oscuro));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transicion);
    margin-top: 0.8rem;
    box-shadow: 0 12px 25px rgba(225, 6, 0, 0.22);
    letter-spacing: 0.3px;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(225, 6, 0, 0.32);
    background: linear-gradient(135deg, var(--rojo), #8f0000);
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid #ececec;
    color: #777;
}

.auth-footer p {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.auth-link {
    color: var(--rojo);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transicion);
}

.auth-link:hover {
    color: var(--rojo-oscuro);
    text-decoration: underline;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


/* ============================= */


/* RESPONSIVE */


/* ============================= */

@media (max-width: 576px) {
    .auth-container {
        padding: 1rem;
    }
    .auth-card {
        margin: 0;
        border-radius: 16px;
    }
    .auth-header {
        padding: 2rem 1.4rem 1.9rem;
    }
    .auth-header::after {
        width: 70px;
        height: 28px;
        bottom: -14px;
    }
    .auth-logo {
        width: 68px;
        height: 68px;
        font-size: 1.7rem;
    }
    .auth-title {
        font-size: 1.7rem;
    }
    .auth-subtitle {
        font-size: 0.92rem;
    }
    .auth-body {
        padding: 2.2rem 1.4rem 1.8rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}