/* Forzar modo claro */
:root {
  color-scheme: light !important;
}

html {
  color-scheme: light !important;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #003b49 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    color-scheme: light !important;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #ffb819;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #ffb819;
    border-radius: 20px 20px 0 0;
}

/* Logo y título */
.logo-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
}


.logo:hover {
    transform: scale(1.1) translateY(-5px);
}

.logo-section h1 {
    color: #003b49;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

/* Toggle entre Login y Registro */
.auth-toggle {
    display: flex;
    background: #f0f0f0;
    border-radius: 15px;
    padding: 6px;
    margin-bottom: 40px;
    border: 2px solid #ffb819;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #666666;
    position: relative;
    z-index: 2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.toggle-btn.active {
    background: #ffb819;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 184, 25, 0.4);
    transform: translateY(-2px);
}

/* Formularios */
.auth-form {
    display: none;
    animation: fadeIn 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(60px) scale(0.9); 
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0);
    }
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: #003b49;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #003b49;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #999999;
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: #ffb819;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 184, 25, 0.3), 
                0 0 0 3px rgba(255, 184, 25, 0.2);
    transform: translateY(-2px) scale(1.01);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-help {
    display: block;
    margin-top: 8px;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
}

/* Botón de autenticación */
.auth-btn {
    width: 100%;
    padding: 20px 28px;
    background: #ffb819;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 184, 25, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #ffb819;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 1s ease;
}

.auth-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 35px rgba(255, 184, 25, 0.6);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #003b49;
    border-color: #003b49;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(-3px) scale(1.02);
    transition: all 0.3s ease;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 25px rgba(255, 184, 25, 0.2);
}

/* Spinner de carga */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 12px;
}

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

/* Mensajes */
.auth-message {
    margin-top: 25px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    animation: slideDown 0.8s ease;
    border: 2px solid;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-message.success {
    background: #e8f5e8;
    color: #003b49;
    border-color: #003b49;
}

.auth-message.error {
    background: #ffe8e8;
    color: #d32f2f;
    border-color: #d32f2f;
}

.auth-message.info {
    background: #fff8e1;
    color: #ffb819;
    border-color: #ffb819;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .auth-card {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .logo {
        width: 100px;
        height: auto;
    }
    
    .logo-section h1 {
        font-size: 28px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .logo {
        width: 120px;
        height: auto;
    }
}

/* Móviles pequeños */
@media (max-width: 360px) {
    .logo {
        width: 80px;
        height: auto;
    }
    
    .auth-toggle {
        margin-bottom: 40px;
        padding: 6px;
    }
    
    .toggle-btn {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .form-group input {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .auth-btn {
        padding: 20px 24px;
        font-size: 16px;
    }
}


.auth-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}


/* Efectos de partículas sutiles */
.auth-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 184, 25, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 30s ease-in-out infinite reverse;
    z-index: -1;
}

/* Estilos para la sección de invitado */
.invitado-section {
    margin: 20px 0;
    text-align: center;
}

.divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.invitado-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.invitado-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1ea085);
}

.invitado-info {
    color: #666;
    font-size: 14px;
    margin: 0;
}