/* ===== PÁGINAS DE AUTENTICACIÓN ===== */

.auth-body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px; /* ✅ Aumentado de 450px a 500px para más espacio */
}

.auth-card {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* ✅ Asegurar que la tarjeta se expanda con el contenido */
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 700;
}

.auth-header p {
    color: var(--secondary-color);
    font-size: 15px;
    margin-bottom: 0;
}

.login-icon {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.auth-form .form-group:last-child {
    margin-bottom: 0;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

/* ✅ Nuevo: Ajuste para campos con texto de ayuda */
.form-text {
    font-size: 12px;
    color: var(--secondary-color);
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* ✅ Nuevo: Estilo para labels con texto opcional */
.form-label small {
    font-weight: 400;
    color: var(--secondary-color);
    margin-left: 4px;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    justify-content: center;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* ✅ Nuevo: Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .login-icon {
        font-size: 48px;
    }

    .form-label small {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
}

/* ✅ Nuevo: Ajuste para pantallas medianas */
@media (min-width: 481px) and (max-width: 768px) {
    .auth-container {
        max-width: 480px;
    }
}

