/* =================================
   ALERTAS Y MENSAJES
   ================================= */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* =================================
   RESET Y ESTILOS BASE
   ================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #18191a;
    color: #e4e6ea;
    line-height: 1.5;
}

/* =================================
   COMPONENTES DE FORMULARIO
   ================================= */

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #3a3b3c;
    border: 1px solid #5a5a5a;
    border-radius: 8px;
    color: #e4e6ea;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #4a4b4c;
}

.form-input::placeholder {
    color: #b0b3b8;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #b0b3b8;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* =================================
   BOTONES
   ================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #3a3b3c;
    color: #e4e6ea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* =================================
   UTILIDADES
   ================================= */

.mt-2 {
    margin-top: 8px;
}

/* =================================
   ESTILOS ESPECÍFICOS DE LOGIN
   ================================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #242526;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #393a3b;
    animation: slideInUp 0.6s ease-out;
}

.login-header {
    background: linear-gradient(135deg, #2a2b2c 0%, #242526 100%);
    padding: 40px 30px 30px;
    text-align: center;
    border-bottom: 1px solid #393a3b;
}

.login-logo {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -1px;
}

.login-subtitle {
    color: #b0b3b8;
    font-size: 16px;
    margin: 0;
}

.login-body {
    padding: 30px;
}

.login-form .form-group:last-of-type {
    margin-bottom: 24px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.login-footer {
    text-align: center;
    color: #b0b3b8;
    font-size: 14px;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #764ba2;
}

/* =================================
   ANIMACIONES
   ================================= */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   RESPONSIVE
   ================================= */

@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-header {
        padding: 30px 20px 20px;
    }
    
    .login-body {
        padding: 20px;
    }
    
    .login-logo {
        font-size: 36px;
    }
    
    .form-input {
        padding: 10px 14px;
    }
}