/* Estilos comunes para templates de autenticación */

/* ===== ESTILOS BASE PARA FORMULARIOS DE AUTH ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

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

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* ===== ESTILOS PARA FORMULARIOS ===== */
.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--soft-white);
    padding: 0.75rem 1rem;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.auth-form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    color: var(--soft-white);
    outline: none;
}

.auth-form-control::placeholder {
    color: #6c757d;
}

/* ===== ESTILOS PARA CHECKBOXES ===== */
.auth-form-check {
    margin-bottom: 1rem;
}

.auth-form-check-input {
    width: 1.5rem !important;
    height: 1.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 3px solid #667eea !important;
    border-radius: 6px !important;
    margin-right: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: relative !important;
}

.auth-form-check-input:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    position: relative !important;
}

.auth-form-check-input:checked::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.auth-form-check-input:focus {
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.3) !important;
    outline: none !important;
}

.auth-form-check-label {
    color: #333;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

/* ===== ESTILOS PARA BOTONES ===== */
.auth-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    color: white;
    transition: all 0.3s ease;
    margin-top: 1rem;
    cursor: pointer;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== ESTILOS PARA ALERTAS ===== */
.auth-alert {
    border-radius: 15px;
    border: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.auth-alert-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #d32f2f;
    border-left: 4px solid #f44336;
}

.auth-alert-success {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.auth-alert-warning {
    background: rgba(255, 152, 0, 0.2);
    color: #f57c00;
    border-left: 4px solid #ff9800;
}

.auth-alert-info {
    background: rgba(33, 150, 243, 0.2);
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

/* ===== ESTILOS PARA ENLACES ===== */
.auth-link {
    color: #667eea !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #5a6fd8 !important;
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.auth-divider::before {
    content: 'o';
    background: rgba(255, 255, 255, 0.1);
    padding: 0 1rem;
    color: var(--soft-white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
}

/* ===== ESTILOS PARA REQUISITOS DE CONTRASEÑA ===== */
.auth-password-requirements {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
}

.auth-password-requirements small {
    color: #666;
    display: block;
    margin-bottom: 0.25rem;
}

.auth-password-requirements .requirement-met {
    color: #28a745;
}

.auth-password-requirements .requirement-unmet {
    color: #dc3545;
}

/* ===== ESTILOS PARA ICONOS ===== */
.auth-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.auth-input-icon {
    position: relative;
}

.auth-input-icon .form-control {
    padding-left: 3rem;
}

.auth-input-icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
}

/* ===== ANIMACIONES ===== */
.auth-fade-in {
    animation: authFadeIn 0.5s ease-in-out;
}

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

.auth-slide-in {
    animation: authSlideIn 0.5s ease-in-out;
}

@keyframes authSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 