/**
 * VentasBot - Estilos de Autenticación
 * Basado en la identidad corporativa de SurveyColombia
 */

/* ============================================
   Variables
   ============================================ */

:root {
    --primary-color: #00507c;
    --primary-dark: #003d5f;
    --primary-light: #1a6a96;
    --secondary-color: #939393;
    --black: #000000;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

/* ============================================
   Layout de Autenticación
   ============================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 80, 124, 0.2);
}

.auth-logo h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 5px;
}

.auth-logo p {
    color: var(--secondary-color);
    font-size: 14px;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title h3 {
    color: var(--black);
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-title p {
    color: var(--secondary-color);
    font-size: 14px;
}

/* ============================================
   Formularios
   ============================================ */

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--black);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,80,124,0.1);
}

.form-group input.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.input-group input {
    padding-left: 45px;
}

/* ============================================
   Botones
   ============================================ */

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,80,124,0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn-secondary {
    background: var(--secondary-color);
}

.auth-btn-secondary:hover {
    background: var(--secondary-dark);
}

/* ============================================
   Enlaces
   ============================================ */

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-links p {
    margin-top: 15px;
    color: var(--secondary-color);
    font-size: 14px;
}

/* ============================================
   Alertas
   ============================================ */

.auth-alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.auth-alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================
   Recuperación de contraseña
   ============================================ */

.reset-info {
    text-align: center;
    margin-bottom: 25px;
}

.reset-info i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.reset-info p {
    color: var(--secondary-color);
    font-size: 14px;
}

/* ============================================
   Animaciones
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-logo h2 {
        font-size: 24px;
    }
    
    .auth-title h3 {
        font-size: 20px;
    }
}