/* unified-styles.css - Estilos unificados para páginas de login y mantenimiento */

:root {
    --primary-color: #764ba2;
    --primary-dark: #5d3b7a;
    --primary-light: #9c7fbf;
    --secondary-color: #667eea;
    --danger-color: #dc3545;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --info-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #333333;
    --gray-color: #666666;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Contenedores comunes */
.container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.container-wide {
    max-width: 800px;
}

.container-content {
    padding: 40px;
}

/* Header común */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-header p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.page-header h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* Badges y etiquetas */
.badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.badge-admin {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: #333;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

/* Alertas */
.alert {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left-color: #c62828;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #e8f4fd;
    color: #084298;
    border-left-color: #3498db;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    color: var(--gray-color);
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: #333;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Links */
.links {
    margin-top: 20px;
    text-align: center;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link:hover {
    text-decoration: underline;
}

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

/* Boxes especiales */
.info-box {
    background: #e8f4fd;
    border-radius: var(--radius-sm);
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid var(--info-color);
}

.warning-box {
    background: #fff3cd;
    border-radius: var(--radius-sm);
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #ffeaa7;
}

.message-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid white;
}

/* Mantenimiento */
.maintenance-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--warning-color);
    animation: spin 3s linear infinite;
}

.status-indicator {
    display: inline-block;
    padding: 8px 15px;
    background: var(--warning-color);
    color: white;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Grid y layout */
.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.col {
    flex: 1;
}

/* Preview específico */
.preview-header {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

/* Utilidades */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.p-20 { padding: 20px; }
.p-40 { padding: 40px; }

/* Responsive */
@media (max-width: 768px) {
    .container-content {
        padding: 30px 20px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .row {
        flex-direction: column;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container-content {
        padding: 20px 15px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .maintenance-icon {
        font-size: 4rem;
    }
}