/*
⚠️  ÖNEMLİ UYARI: Bu dosyada değişiklik yapmadan önce mutlaka .master/index.md dosyasını okuyun!

Bu dosya component sistemine uygun olarak oluşturulmuştur.
Uzun kodlu dosyalar component sistemine aykırıdır ve oluşturulmamalıdır.

Component Adı: LoginForm
Dosya Türü: CSS
Amaç: Giriş formunun stilini belirler.

@author AI Assistant
@version 2.0
@created 2025-10-05
@last_updated 2025-01-27
*/

/* CSS Variables - Dashboard ile uyumlu */
:root {
    --primary-bg: #0f1419;
    --secondary-bg: #1a1f2e;
    --tertiary-bg: #252b3d;
    --card-bg: #1e2430;
    --card-hover: #252b3d;
    --text-primary: #e8eaed;
    --text-secondary: #b8bcc8;
    --text-muted: #8b919f;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-error: #ef4444;
    --accent-info: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #1e2430 0%, #252b3d 100%);
    --gradient-card: linear-gradient(135deg, #1e2430 0%, #2a3142 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: var(--space-lg);
    animation: fadeIn 0.6s ease-out;
}

.login-form {
    background: var(--gradient-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

.login-header {
    margin-bottom: var(--space-2xl);
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.login-form h2 {
    margin: 0 0 var(--space-sm) 0;
    font-weight: 700;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-form p {
    margin: 0 0 var(--space-2xl) 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.input-group {
    margin-bottom: var(--space-xl);
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    color: var(--text-muted);
    z-index: 1;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.input-group input:focus + .input-icon,
.input-group input:focus ~ .input-icon {
    color: var(--accent-primary);
}

.input-group input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.btn-login {
    flex: 1;
    padding: var(--space-lg);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
}

.btn-login.btn-primary {
    background: var(--gradient-primary);
}

.btn-login.btn-secondary {
    background: var(--tertiary-bg);
    border: 1px solid var(--accent-primary);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    color: var(--accent-error);
    margin-top: var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 20px;
    padding: var(--space-sm) var(--space-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.error-message.success {
    color: var(--accent-success);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.error-message.error {
    color: var(--accent-error);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Form states */
.login-form.success {
    border-color: var(--accent-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.login-form.error {
    border-color: var(--accent-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Input focus states */
.input-wrapper.focused .input-icon {
    color: var(--accent-primary);
}

/* Loading animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.login-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 400;
}

.language-switcher {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.language-switcher a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.language-switcher a:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.language-switcher a.active {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--gradient-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px; /* Genişliği biraz daralttım */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex; /* Flexbox ekledim */
    flex-direction: column; /* Dikey hizalama */
    align-items: center; /* Ortala */
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: var(--space-lg);
    font-size: 1.6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 1.1rem; /* Yazı boyutunu biraz büyüttüm */
    line-height: 1.7;
    margin-bottom: var(--space-xl); /* Alt boşluğu artırdım */
}

/* Yeni eklenen stiller */
.modal-icon {
    width: 70px;
    height: 70px;
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.modal-icon svg {
    width: 36px;
    height: 36px;
}

.btn-modal-close {
    background: var(--accent-primary);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--space-lg);
}

.btn-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: var(--space-md);
    }
    
    .login-form {
        padding: var(--space-xl);
        max-width: 100%;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
    }
    
    .login-form h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: var(--space-lg);
    }
    
    .login-icon {
        width: 50px;
        height: 50px;
    }
    
    .login-form h2 {
        font-size: 1.3rem;
    }
    
    .input-group input {
        padding: var(--space-sm) var(--space-sm) var(--space-sm) 2.5rem;
    }
    
    .input-icon {
        left: var(--space-sm);
        width: 16px;
        height: 16px;
    }
}
