/* ==========================================================================
   ESTILOS DE AUTENTICACIÓN (LOGIN / REGISTRO)
   ========================================================================== */

/* Contenedor Principal Centrado */
.auth-container-wrapper {
    margin-top: 140px; /* Espacio para el navbar fixed */
    margin-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
    
    width: 90%; /* En móvil ocupa el 90% */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh; /* Para que no se vea vacío abajo */
}

/* Tarjeta del Formulario */
.auth-card {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    width: 100%;
    font-family: 'Lexend', sans-serif;
}

/* Anchos específicos según la página */
.auth-card.login-card {
    max-width: 450px;
}

.auth-card.register-card {
    max-width: 700px;
}

/* Títulos */
.auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

/* Alertas */
.auth-alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}
.auth-alert.success { background-color: #e6fffa; color: #00b894; border: 1px solid #b2f5ea; }
.auth-alert.error { background-color: #fff5f5; color: #ff7675; border: 1px solid #feb2b2; }

/* Campos del Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Importante para que el padding no rompa el ancho */
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Botón Principal */
.btn-primary-auth {
    width: 100%;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-primary-auth:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-primary-auth:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Enlaces y Separadores */
.auth-divider {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.auth-subtitle {
    margin-bottom: 20px;
    color: #007bff;
    font-size: 16px;
    font-weight: 600;
}

.auth-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.auth-footer-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}
.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container-wrapper {
        margin-top: 100px; /* Menos margen en móvil */
    }
    .auth-card {
        padding: 30px 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}