/* Production-Ready Security Styles and CSP-Safe CSS */

/* Notification System Styles */
.production-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.production-notification {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    margin-bottom: 10px;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 350px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.production-notification.show {
    transform: translateX(0);
}

.production-notification.success {
    border-left: 4px solid #00FF00;
}

.production-notification.error {
    border-left: 4px solid #FF1493;
}

.production-notification.warning {
    border-left: 4px solid #FFD700;
}

.production-notification.info {
    border-left: 4px solid #00FFFF;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: #F5F5F5;
}

.notification-content i {
    font-size: 18px;
    opacity: 0.9;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #F5F5F5;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid #00FFFF;
    border-radius: 50%;
    animation: production-spin 1s linear infinite;
}

@keyframes production-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation Styles */
.form-input.invalid {
    border-color: #FF1493;
    box-shadow: 0 0 0 2px rgba(255, 20, 147, 0.3);
}

.form-input.valid {
    border-color: #00FF00;
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.3);
}

.form-error {
    color: #FF1493;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-success {
    color: #00FF00;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0%;
}

.password-strength-fill.weak {
    background: #FF1493;
    width: 25%;
}

.password-strength-fill.fair {
    background: #FFD700;
    width: 50%;
}

.password-strength-fill.good {
    background: #00FFFF;
    width: 75%;
}

.password-strength-fill.strong {
    background: #00FF00;
    width: 100%;
}

.password-requirements {
    font-size: 12px;
    color: #888;
}

.password-requirements li {
    margin: 2px 0;
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.password-requirements li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #FF1493;
}

.password-requirements li.met::before {
    content: '✓';
    color: #00FF00;
}

/* Lazy Loading Image Styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

img.lazy.loaded {
    opacity: 1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Management */
.focus-trap {
    outline: none;
}

.focus-visible {
    outline: 2px solid #00FFFF;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-panel {
        background: #000;
        border: 2px solid #FFF;
    }
    
    .neon-glow {
        text-shadow: none;
        color: #FFF;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .particles {
        display: none;
    }
}

/* Print Styles */
@media print {
    .bg-animation,
    .particles,
    .clouds,
    .oauth-buttons,
    .production-notifications {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-panel {
        background: white !important;
        border: 1px solid black !important;
        box-shadow: none !important;
    }
}