/* Authentication Forms Styling for ZephyrCheats */

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Auth Card */
.auth-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #0066ff, #4d94ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Form Styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-input:invalid {
    border-color: #ff4655;
}

.form-input:valid {
    border-color: #00d4aa;
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: rgba(255, 70, 85, 0.1);
    border: 1px solid rgba(255, 70, 85, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: #00d4aa;
}

.alert-warning {
    background: rgba(243, 152, 0, 0.1);
    border: 1px solid rgba(243, 152, 0, 0.3);
    color: #f39800;
}

.alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
}

/* Policy Section */
.policy-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.policy-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.policy-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.policy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.policy-checkbox:hover {
    background: rgba(255, 255, 255, 0.03);
}

.policy-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.policy-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.policy-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.policy-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.policy-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #4d94ff;
    text-decoration: underline;
}

/* Risk Warning */
.risk-warning {
    background: rgba(255, 70, 85, 0.1);
    border: 1px solid rgba(255, 70, 85, 0.3);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.warning-icon {
    font-size: 20px;
    color: #ff6b6b;
    flex-shrink: 0;
}

.warning-content h4 {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.warning-content p {
    color: rgba(255, 107, 107, 0.9);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

/* Auth Button */
.auth-button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-text {
    flex: 1;
}

.button-icon {
    font-size: 18px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-switch {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.auth-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #4d94ff;
    text-decoration: underline;
}

/* Auth Sidebar (for registration page) */
.auth-sidebar {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    margin-left: 30px;
    position: relative;
    z-index: 1;
}

.sidebar-content {
    height: 100%;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-content h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Stats Preview */
.stats-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stats-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #ff4655; width: 25%; }
.strength-fair { background: #f39800; width: 50%; }
.strength-good { background: #ffc107; width: 75%; }
.strength-strong { background: #00d4aa; width: 100%; }

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.remember-me .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.remember-me:hover .checkmark {
    border-color: var(--accent-primary);
}

/* Forgot Password Link */
.forgot-password {
    text-align: center;
    margin: 15px 0;
}

.forgot-password a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--accent-primary);
}

/* Loading State */
.auth-button.loading {
    pointer-events: none;
}

.auth-button.loading .button-text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .auth-sidebar {
        margin-left: 0;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 80px 15px 20px;
    }
    
    .auth-card,
    .auth-sidebar {
        padding: 25px;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feature-item {
        gap: 12px;
    }
    
    .feature-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px;
    }
    
    .policy-section {
        padding: 20px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .form-input {
        padding: 10px 14px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .auth-container {
        background: linear-gradient(135deg, #000000 0%, #111111 100%);
    }
    
    .auth-card {
        background: rgba(20, 20, 20, 0.98);
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    .auth-sidebar {
        background: rgba(15, 15, 15, 0.98);
        border-color: rgba(255, 255, 255, 0.05);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 2px;
    }
    
    .auth-button {
        border: 2px solid var(--accent-primary);
    }
    
    .checkmark {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
