/* ==========================================================================
   1. IMPORTACIÓN DE TIPOGRAFÍA
   ========================================================================== */
/* Usamos Quicksand: una fuente redondeada, legible y muy amigable */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');

/* ==========================================================================
   2. SISTEMA DE DISEÑO (Variables de Color y Geometría)
   ========================================================================== */
:root {
    /* Paleta Principal */
    --color-primary: #4ade80; /* Menta Suave (Acciones principales) */
    --color-secondary: #facc15; /* Amarillo Mostaza (Destacados) */
    
    /* Fondos */
    --color-bg: #f8fafc; /* Gris azulado muy claro (Fondo general de la web) */
    --color-card: #ffffff; /* Blanco puro (Fondo de las tarjetas) */
    
    /* Textos */
    --color-text: #1e293b; /* Gris oscuro (Títulos) */
    --color-text-muted: #64748b; /* Gris medio (Etiquetas y descripciones) */
    
    /* Geometría (Bordes redondeados) */
    --radius-card: 30px; /* Bordes amplios para tarjetas */
    --radius-input: 15px; /* Bordes medios para campos de texto */
    --radius-btn: 18px; /* Bordes para botones */
    
    /* Sombras */
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05); /* Sombra difuminada y elegante */
}

/* ==========================================================================
   3. RESET BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   4. ESTRUCTURA DE AUTENTICACIÓN (Login / Registro)
   ========================================================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--color-card);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 420px;
}

/* ==========================================================================
   5. EL LOGO
   ========================================================================== */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 10px;
}

.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    display: block;
    margin: 0 auto;
    border-radius: 0; /* Evitamos que el CSS corte las puntas del logo */
    image-rendering: -webkit-optimize-contrast; /* Mejora la nitidez */
}

/* ==========================================================================
   6. FORMULARIOS (Inputs)
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-input);
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); /* Brillo suave al escribir */
}

/* ==========================================================================
   7. BOTONES
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn:active {
    transform: translateY(0); /* Efecto de "clic" real */
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

/* ==========================================================================
   8. ALERTAS (Feedback del sistema)
   ========================================================================== */
.alert {
    padding: 15px;
    border-radius: var(--radius-input);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   9. RESPONSIVE (Adaptación a Celulares)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        border-radius: 20px; 
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .logo-img {
        max-height: 85px; 
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* --- ESTILO PERSONALIZADO PARA SWEETALERT2 --- */
div.swal-wawawiwa {
    border-radius: var(--radius-card) !important;
    font-family: 'Quicksand', sans-serif !important;
}