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

/* Resetear estilos del layout principal SOLO para páginas de login específicas */
body.auth-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Contenido principal para páginas de auth - SOLO cuando tiene la clase auth-content */
.main-content.auth-content {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

/* Forzar ancho completo para páginas de auth con no-sidebar */
.main-content.no-sidebar.auth-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Asegurar que las páginas de registro mantengan su layout original */
.main-content:not(.auth-content) {
    /* Mantener estilos originales del layout - no sobrescribir */
    width: calc(100% - 280px) !important;
    padding: 32px 24px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    min-height: auto !important;
}

.main-content.no-sidebar:not(.auth-content) {
    width: 100% !important;
    /* max-width removido para evitar conflicto en páginas de auth */
    /* Esta regla no debe aplicar límites globales de ancho */
    /* Cualquier limitación específica se maneja en layout.css con body:not(.auth-page) */
    max-width: none !important;
    margin: 0 auto !important;
    padding: 40px 2rem !important;
}

/* Container específico para auth */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Card de login/registro */
.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.auth-card .card-body {
    padding: 2rem;
}

/* Título de auth */
.auth-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* Formularios de auth */
.auth-form .form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Input group para contraseña */
.auth-form .input-group .form-control {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-form .input-group .btn {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

.auth-form .input-group .btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

/* Botones de auth */
.auth-btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,123,255,0.3);
}

.auth-btn-outline {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.auth-btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,123,255,0.3);
}

/* Enlaces de auth */
.auth-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Alertas de auth */
.auth-alert {
    border-radius: 8px;
    border: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.auth-alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.auth-alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Modal de registro */
.auth-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.auth-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.auth-modal .modal-body {
    padding: 1.5rem;
}

.auth-modal .modal-title {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive para auth */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem 0.5rem;
    }
    
    .auth-card .card-body {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    .auth-form .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    .auth-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 0.5rem;
    }
    
    .auth-card .card-body {
        padding: 1rem;
    }
    
    .main-content.auth-content {
        min-height: calc(100vh - 150px);
    }
}
