/**
 * BEF Panel - Auth Styles
 * Modern ve şık giriş sayfası tasarımı
 */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0c0a09;
    --card-bg: #1c1917;
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: #f5f5f4;
    --text-secondary: #a8a29e;
    --input-bg: #0c0a09;
    --input-border: #292524;
    --input-focus: #ff6a20;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Arka plan efektleri */
body.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 106, 32, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(120, 53, 15, 0.05) 0%, transparent 50%);
    animation: aurora 15s ease infinite;
    z-index: 0;
}

@keyframes aurora {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(2%, 2%) rotate(1deg);
    }
    66% {
        transform: translate(-1%, 1%) rotate(-1deg);
    }
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* Form Styles */
.auth-form .form-floating {
    position: relative;
}

.auth-form .form-floating > label {
    color: var(--text-secondary);
    padding-left: 1rem;
}

.auth-form .form-control {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 1rem 1rem;
    height: 60px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    background: var(--input-bg);
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
}

.auth-form .form-control::placeholder {
    color: transparent;
}

.auth-form .form-control.is-invalid {
    border-color: var(--danger-color);
}

.auth-form .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.auth-form .invalid-feedback {
    font-size: 0.8125rem;
    margin-top: 6px;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    padding: 8px;
    z-index: 5;
    text-decoration: none;
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Checkbox */
.form-check-input {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    width: 1.125rem;
    height: 1.125rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Links */
.auth-link {
    color: var(--primary-color);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 24px;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    font-size: 0.875rem;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

/* Password Requirements */
.password-requirements {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
}

.password-requirements small {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.requirements-list li {
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.requirements-list li i {
    font-size: 0.75rem;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-logo img {
        max-width: 140px;
    }
    
    .requirements-list {
        grid-template-columns: 1fr;
    }
}
