/* Auth Header Özel Stilleri */

/* Critical CSS - FOUC (Flash of Unstyled Content) önleme */
html {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); /* Light mode gradient */
    color: #111827;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Dark mode için gradient background */
html.dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #f9fafb;
}

body {
    background: inherit;
    color: inherit;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Loading sırasında görünecek minimum stil */
.min-h-screen {
    min-height: 100vh;
}

.login-bg {
    background: inherit;
}

:root {
    --primary-color: #05b2ca;
    --secondary-color: #133f6e;
}

/* Temel renkler */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }

/* Login arka plan */
.login-bg {
    background: #f8f9fa;
    transition: background-color 0.3s ease;
}

/* Kart stilleri */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Primary buton stilleri */
.btn-primary {
    background: var(--primary-color);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    outline: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 178, 202, 0.3);
    border: 1px solid #9ca3af;
    outline: none;
}

.btn-primary:focus {
    border: 1px solid #6b7280;
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 178, 202, 0.1);
}

/* Input field stilleri */
.input-field {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    outline: none;
}

.input-field:hover {
    border: 1px solid #9ca3af;
    outline: none;
}

.input-field:focus {
    border: 1px solid #6b7280;
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Custom Checkbox Stilleri */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.custom-checkbox:hover {
    border-color: var(--primary-color);
}

.custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 178, 202, 0.1);
}

/* Tab Menu Stilleri */
.tab-menu {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 2px;
}

.tab-button {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-button.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.tab-button:not(.active) {
    color: #64748b;
}

.tab-button:not(.active):hover {
    color: var(--primary-color);
    background: rgba(5, 178, 202, 0.05);
}

/* Responsive tab stilleri */
@media (max-width: 640px) {
    .tab-button {
        padding: 8px 6px;
        font-size: 12px;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Google Button Stilleri */
.google-btn {
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    transition: all 0.3s ease;
    outline: none;
}

.google-btn:hover {
    background: #f9fafb;
    border: 1px solid #9ca3af;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-btn:focus {
    border: 1px solid #6b7280;
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Flash Message Stilleri */
.flash-error {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}

.flash-success {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    color: #16a34a !important;
}

/* Divider Stilleri */
.divider-line {
    border-color: #e5e7eb;
}

.divider-text {
    background: white;
    color: #6b7280;
    padding: 0 16px;
}

/* Animation stilleri */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Dark Mode Stilleri */
.dark {
    --primary-color: #06b6d4;
    --secondary-color: #1e40af;
}

.dark .login-bg {
    background: #0f172a;
}

.dark .card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .input-field {
    background: #1e293b;
    border: 1px solid #374151;
    color: #f1f5f9;
    outline: none;
}

.dark .input-field:hover {
    border: 1px solid #6b7280;
    outline: none;
}

.dark .input-field:focus {
    border: 1px solid #9ca3af;
    background: #1e293b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

.dark .input-field::placeholder {
    color: #94a3b8;
}

.dark .tab-menu {
    background: #334155;
}

.dark .tab-button.active {
    background: #475569;
    color: var(--primary-color);
    font-weight: 600;
}

.dark .tab-button:not(.active) {
    color: #94a3b8;
}

.dark .tab-button:not(.active):hover {
    color: var(--primary-color);
    background: rgba(6, 182, 212, 0.1);
}

.dark .custom-checkbox {
    background-color: #334155;
    border-color: #475569;
}

.dark .custom-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.dark .google-btn {
    background: #374151;
    border: 1px solid #374151;
    color: #f3f4f6;
}

.dark .google-btn:hover {
    background: #4b5563;
    border: 1px solid #6b7280;
    outline: none;
}

.dark .google-btn:focus {
    border: 1px solid #9ca3af;
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

.dark .flash-error {
    background: #7f1d1d !important;
    border-color: #dc2626 !important;
    color: #fca5a5 !important;
}

.dark .flash-success {
    background: #14532d !important;
    border-color: #16a34a !important;
    color: #86efac !important;
}

.dark .divider-line {
    border-color: #4b5563;
}

.dark .divider-text {
    background: #1e293b;
    color: #9ca3af;
}

.dark .text-gray-600 {
    color: #9ca3af !important;
}

.dark .text-gray-500 {
    color: #6b7280 !important;
}

.dark .border-gray-200 {
    border-color: #4b5563 !important;
}

.dark .btn-primary {
    border: 1px solid #374151;
}

.dark .btn-primary:hover {
    border: 1px solid #6b7280;
    outline: none;
}

.dark .btn-primary:focus {
    border: 1px solid #9ca3af;
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Text Selection */
::selection {
    background-color: rgba(5, 178, 202, 0.3);
    color: inherit;
}

.dark ::selection {
    background-color: rgba(6, 182, 212, 0.3);
    color: inherit;
}

/* Loading overlay stilleri */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form validation stilleri */
.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-error {
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    font-size: 0.75rem;
    color: #dc2626;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Responsive iyileştirmeler */
@media (max-width: 768px) {
    .card {
        border-radius: 12px;
        margin: 1rem;
    }

    .tab-button {
        font-size: 12px;
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .card {
        border-radius: 8px;
        margin: 0.5rem;
    }

    .btn-primary,
    .google-btn {
        font-size: 14px;
    }
}

/* Accessibility iyileştirmeleri */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode desteği */
@media (prefers-contrast: high) {
    .btn-primary,
    .google-btn,
    .input-field {
        border-width: 2px;
    }

    .custom-checkbox {
        border-width: 3px;
    }
}