/* ============================================================================
   ESTILOS PARA PÁGINA DE LOGIN - SISTEMA SINPE
   Versión completa con mensaje profesional para cuentas deshabilitadas
   ========================================================================== */

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle, #03a18c 0%, #0b3a32 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* === CONTENEDOR PRINCIPAL === */
.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === HEADER DEL LOGIN === */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-header h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #6c757d;
    font-size: 14px;
}

/* === MENSAJES DE ERROR NORMALES === */
.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.error-message small {
    display: block;
    margin-top: 5px;
    opacity: 0.9;
}

/* === FORMULARIO DE LOGIN === */
.login-form {
    margin-bottom: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

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

.form-group input::placeholder {
    color: #adb5bd;
}

/* === TEXTO DE AYUDA === */
.form-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    line-height: 1.4;
}

/* === BOTÓN DE LOGIN === */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #2daaa0 0%, #01442a 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 170, 160, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 170, 160, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* === MENSAJE DE BLOQUEO === */
.lockout-message {
    text-align: center;
    background: linear-gradient(135deg, #ffa726, #ff7043);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.lockout-message p {
    margin-bottom: 5px;
}

.lockout-message p:first-child {
    font-size: 18px;
    font-weight: 600;
}

/* === FOOTER === */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.login-footer small {
    color: #6c757d;
}

/* ============================================================================
   ESTILOS PARA MENSAJE PROFESIONAL DE CUENTA DESHABILITADA
   ========================================================================== */

.disabled-account-notice {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border: none;
    border-radius: 15px;
    color: white;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo sutil */
.disabled-account-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.disabled-account-notice .notice-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.disabled-account-notice .notice-icon {
    font-size: 28px;
    margin-right: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.disabled-account-notice .notice-content {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.disabled-account-notice .notice-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.disabled-account-notice .notice-content p:last-child {
    margin-bottom: 0;
}

.user-info-display {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-info-display strong {
    color: #fff3cd;
    font-weight: 600;
}

.payment-reminder {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0;
    position: relative;
}



.reminder-date {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #fff3cd !important;
    margin: 15px 0 !important;
    padding: 10px;
    background: rgba(255, 243, 205, 0.2);
    border-radius: 8px;
    border: 2px dashed rgba(255, 243, 205, 0.5);
}

.contact-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info strong {
    color: #fff3cd;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 10px;
}

.back-button {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid white !important;
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 20px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    position: relative;
    z-index: 1;
}

.back-button:hover {
    background: white !important;
    color: #ff6b6b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

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

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    animation: slideIn 0.6s ease-out;
}

.disabled-account-notice {
    animation: slideInDown 0.7s ease-out;
}

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

@media (max-width: 480px) {
    .login-box {
        padding: 25px 20px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
    
    .disabled-account-notice {
        padding: 20px 15px;
        margin: 10px 0;
    }
    
    .disabled-account-notice .notice-header {
        font-size: 18px;
    }
    
    .disabled-account-notice .notice-icon {
        font-size: 24px;
    }
    
    .disabled-account-notice .notice-content {
        padding: 20px 15px;
    }
    
    .user-info-display {
        padding: 12px;
        font-size: 13px;
    }
    
    .reminder-date {
        font-size: 18px !important;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 20px 15px;
    }
    
    .disabled-account-notice {
        padding: 15px 10px;
    }
}

/* ============================================================================
   EFECTOS ADICIONALES Y ACCESIBILIDAD
   ========================================================================== */

/* Validación visual de inputs */
.form-group input[type="email"]:valid {
    border-color: #28a745;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Estados de hover mejorados */
.form-group input:hover {
    border-color: #b8c6d9;
}

/* Transiciones suaves */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Modo oscuro para dispositivos que lo prefieran */
@media (prefers-color-scheme: dark) {
    .login-box {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .login-header h1 {
        color: #ffffff;
    }
    
    .login-header p {
        color: #b8c6d9;
    }
    
    .form-group label {
        color: #ffffff;
    }
    
    .login-footer small {
        color: #b8c6d9;
    }
}

/* Mejoras de rendimiento */
.disabled-account-notice,
.login-box {
    will-change: transform, opacity;
}

/* Print styles */
@media print {
    .disabled-account-notice .back-button {
        display: none;
    }
}

/* Estados de carga */
.login-btn.loading {
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* verificacion 2 */

        .verify-container {
            max-width: 500px;
            margin: 50px auto;
            padding: 20px;
        }
        
        .verify-box {
            background: white;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            text-align: center;
        }
        
        .verify-header {
            margin-bottom: 25px;
        }
        
        .verify-header h2 {
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .user-info {
            background: #f8f9fa;
            border-radius: 4px;
            padding: 15px;
            margin: 15px 0;
            font-size: 14px;
            text-align: left;
        }
        
        .code-input {
            font-size: 24px;
            font-family: monospace;
            text-align: center;
            letter-spacing: 3px;
            width: 160px;
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            margin: 15px 0;
        }
        
        .backup-input {
            font-size: 16px;
            font-family: monospace;
            text-align: center;
            letter-spacing: 1px;
            width: 130px;
            padding: 10px;
            border: 2px solid #ddd;
            border-radius: 4px;
            margin: 10px 0;
        }
        
        .verify-methods {
            margin: 20px 0;
        }
        
        .method-tab {
            display: inline-block;
            padding: 10px 16px;
            margin: 0 5px;
            background: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 4px 4px 0 0;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .method-tab.active {
            background: #3498db;
            color: white;
            border-bottom: 1px solid #3498db;
        }
        
        .method-content {
            border: 1px solid #ddd;
            border-radius: 0 0 4px 4px;
            padding: 20px;
            margin-top: -1px;
        }
        
        .method-content.hidden {
            display: none;
        }
        
        .attempts-warning {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 4px;
            padding: 10px;
            margin: 15px 0;
            color: #856404;
            font-size: 14px;
        }
        
        .countdown {
            font-family: monospace;
            font-size: 14px;
            color: #666;
            margin: 10px 0;
        }
        
        .help-text {
            font-size: 12px;
            color: #666;
            margin-top: 10px;
        }
        
        .time-sync-warning {
            background: #fff3cd;
            border-left: 4px solid #ffc107;
            padding: 10px;
            margin: 10px 0;
            font-size: 13px;
            color: #856404;
        }
        .attempts-warning {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            color: #856404;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .lockout-message {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 20px;
        }
        
        .lockout-message p {
            margin: 5px 0;
        }   