/**
 * ==========================================================
 * ESTILO VISUAL DEFINITIVO - IDENTIDAD CRISTO REY
 * ==========================================================
 * Paleta sofisticada compartida con el checkout.
 * Diseño CSS Vanilla, compatible y responsivo.
 */

:root {
    --color-realeza: #7A1921;
    --color-realeza-claro: #A32832;
    --color-fondo: #FDFBF7;
    --color-texto-principal: #1F2937;
    --color-texto-secundario: #4B5563;
    --sombra-premium: 0 20px 40px -10px rgba(122, 25, 33, 0.1);
    --borde-radio: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto-principal);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Fondo Decorativo */
.lienzo-fondo {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.esfera-decorativa {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.esfera-decorativa.dorada {
    width: 300px;
    height: 300px;
    background-color: rgba(212, 175, 55, 0.3);
    top: -5%;
    right: -5%;
}

.esfera-decorativa.carmesi {
    width: 400px;
    height: 400px;
    background-color: rgba(122, 25, 33, 0.15);
    bottom: -10%;
    left: -10%;
}

/* Tarjeta Central */
.tarjeta-principal {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--borde-radio);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--sombra-premium);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Encabezado */
.encabezado-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.logo-evento {
    width: 300px;
    margin-bottom: 10px;
}

.titulo-login {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-realeza);
}

.subtitulo-login {
    font-size: 0.95rem;
    color: var(--color-texto-secundario);
    line-height: 1.5;
}

.linea-separadora {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 25, 33, 0.15), transparent);
}

/* Interacción */
.seccion-acceso {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.texto-instruccion {
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
    text-align: center;
    margin-bottom: 10px;
}

.leyenda-seguridad {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-texto-secundario);
    text-align: center;
}

.icono-candado {
    width: 14px;
    height: 14px;
}

/* Pantalla de Carga Silenciosa */
.oculto {
    display: none !important;
}

#pantalla-carga {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.texto-carga {
    font-size: 0.9rem;
    color: var(--color-realeza);
    font-weight: 600;
}

.cargador-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(122, 25, 33, 0.2);
    border-top-color: var(--color-realeza);
    border-radius: 50%;
    animation: rotar 1s linear infinite;
}

@keyframes rotar {
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .tarjeta-principal {
        padding: 30px 20px;
    }
}