/**
 * Estilos para páginas de Autenticación
 * Login y Registro
 */

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.Contenedor_Auth {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.Card_Auth {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
}

/* ============================================
   LOGO
   ============================================ */

.Logo_Auth {
    text-align: center;
    margin-bottom: 40px;
}

.Icono_Logo {
    font-size: 3.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.Logo_Auth h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.Logo_Auth p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   FORMULARIO
   ============================================ */

.Formulario_Auth {
    width: 100%;
}

.Formulario_Auth h2 {
    text-align: center;
    color: #333;
    margin: 0 0 30px 0;
    font-size: 1.5rem;
}

/* ============================================
   GRUPOS DE CAMPOS
   ============================================ */

.Grupo_Campo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.Grupo_Campo label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.Grupo_Campo label i {
    color: #667eea;
    width: 18px;
    text-align: center;
}

.Grupo_Campo input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.Grupo_Campo input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.Grupo_Campo input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

/* ============================================
   TEXTOS AUXILIARES
   ============================================ */

.Hint_Contraseña {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #999;
    margin-top: 6px;
}

.Hint_Contraseña i {
    font-size: 0.8rem;
}

.Error_Campo {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 20px;
}

/* ============================================
   BOTÓN PRINCIPAL
   ============================================ */

.Boton_Primario {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.Boton_Primario i {
    font-size: 1.1rem;
}

.Boton_Primario:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.Boton_Primario:active:not(:disabled) {
    transform: translateY(0);
}

.Boton_Primario:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   ALERTAS
   ============================================ */

.Alerta_Error,
.Alerta_Exito {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
    animation: Aparecer_Alerta 0.3s ease;
}

.Alerta_Error {
    background: #fadbd8;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

.Alerta_Exito {
    background: #d5f4e6;
    color: #27ae60;
    border: 1px solid #2ecc71;
}

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

/* ============================================
   ENLACES
   ============================================ */

.Enlace_Auth {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.Enlace_Auth a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.Enlace_Auth a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .Card_Auth {
        padding: 30px 20px;
    }

    .Logo_Auth h1 {
        font-size: 2rem;
    }

    .Formulario_Auth h2 {
        font-size: 1.3rem;
    }

    .Grupo_Campo input {
        padding: 10px 12px;
        font-size: 16px; /* Prevenir zoom en iOS */
    }
}
