/* ================================================
   AUTH.CSS - Estilos para páginas de autenticación
   ================================================ */

/* Variables CSS */
:root {
    --auth-primary: #1a3766;
    --auth-secondary: #287DB4;
    --auth-bg-gradient-start: #c5d1d1;
    --auth-bg-gradient-end: #9fb3b3;
    --auth-card-bg: #ffffff;
    --auth-text-primary: #1a3766;
    --auth-text-secondary: #6c757d;
    --auth-border: #dee2e6;
    --auth-shadow: 0 8px 32px rgba(13, 71, 161, 0.13);
}

/* Estilos generales para páginas de autenticación */
.auth-page {
    min-height: 100vh;
    background: var(--auth-bg-gradient-start);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
    background-size: 40px 40px, 60px 60px, 20px 20px, 20px 20px;
    background-position: 0 0, 20px 20px, 0 0, 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: 'Inter', 'Lora', sans-serif;
}

.auth-card {
    background: var(--auth-card-bg);
    border-radius: 22px;
    box-shadow: var(--auth-shadow);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--auth-border);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.auth-title {
    color: var(--auth-text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--auth-text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Estilos para formularios de autenticación */
.auth-form {
    width: 100%;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: block;
    color: var(--auth-text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--auth-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    color: var(--auth-text-primary);
    box-sizing: border-box;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(26, 55, 102, 0.1);
}

.auth-form-input.is-invalid {
    border-color: #dc3545;
}

.auth-form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-form-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.auth-form-checkbox label {
    color: var(--auth-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    cursor: pointer;
}

/* Botones de autenticación */
.auth-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--auth-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 1rem;
}

.auth-btn:hover {
    background: var(--auth-secondary);
    transform: translateY(-1px);
}

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

/* Enlaces de autenticación */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--auth-secondary);
    text-decoration: underline;
}

/* Mensajes de error y éxito */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert-info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #a6d3ff;
}

/* Texto de validación */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-logo img {
        width: 100px;
    }
}

/* Estilos específicos para AdminLTE compatibility */
.login-page {
    background: var(--auth-bg-gradient-start);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
    background-size: 40px 40px, 60px 60px, 20px 20px, 20px 20px;
    background-position: 0 0, 20px 20px, 0 0, 10px 10px;
}

.login-box {
    width: 420px;
}

.login-card-body {
    background: var(--auth-card-bg);
    border-radius: 22px;
    box-shadow: var(--auth-shadow);
    padding: 3rem 2.5rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    width: 120px;
    height: auto;
}

/* Override AdminLTE button styles for auth pages */
.auth-page .btn-primary {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
    padding: 0.875rem 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.auth-page .btn-primary:hover {
    background: var(--auth-secondary);
    border-color: var(--auth-secondary);
}

/* Input group styles */
.auth-page .input-group {
    margin-bottom: 1.5rem;
}

.auth-page .form-control {
    padding: 0.875rem 1rem;
    border: 2px solid var(--auth-border);
    border-radius: 8px;
    font-size: 1rem;
}

.auth-page .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(26, 55, 102, 0.1);
}
