/* ========================================
   AUTH PAGES - ORTAK STİLLER
   MS Eğitim - Authentication CSS
========================================= */

/* Ana Container - Tema sistemine uyumlu */
.auth-container {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-primary); /* Light temada beyaz arkaplan */
    position: relative;
}

/* Dark tema için arkaplan */
[data-theme="dark"] .auth-container {
    background: var(--bg-secondary); /* Dark temada koyu gri arkaplan */
}

/* Container pattern kaldırıldı - temiz görünüm için */

/* Auth Card - Tema sistemine uyumlu */
.auth-card {
    background: var(--bg-card); /* Light/dark temada kart rengi */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(15px);
    border: 2px solid var(--primary); /* Light temada mavi border */
    transition: var(--transition);
}

/* Dark tema için auth card */
[data-theme="dark"] .auth-card {
    border: 2px solid var(--primary); /* Dark temada da mavi border */
    backdrop-filter: blur(20px);
}

/* Auth Header - Tema sistemine uyumlu */
.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-logo .logo {
    height: 80px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.auth-logo .logo:hover {
    transform: scale(1.05);
}

.auth-header h1 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--text-light);
    font-size: var(--text-base);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Form Styles - Tema sistemine uyumlu */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    font-family: var(--font-family);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white); /* Light temada beyaz input */
    color: var(--text);
    font-size: var(--text-base);
    font-family: var(--font-family);
    transition: var(--transition);
}

/* Dark tema için form control */
[data-theme="dark"] .form-control {
    background: var(--bg-secondary); /* Dark temada koyu gri input */
    border-color: var(--border);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.is-invalid {
    border-color: var(--error);
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary, #001d84);
}

/* Validation Messages */
.invalid-feedback {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: var(--primary, #001d84);
    border-color: var(--primary, #001d84);
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Forgot Password Link */
.forgot-link {
    color: var(--primary, #001d84);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #001560;
    text-decoration: underline;
}

/* Buttons - Tema sistemine uyumlu */
.btn-primary-full, .btn-secondary-full {
    width: 100%;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-full {
    background: var(--primary);
    color: var(--white);
}

.btn-primary-full:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-full {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary-full:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Google Auth Button */
.btn-google-auth {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid #db4437;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #333333;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-decoration: none;
    margin-bottom: 1rem;
}

.btn-google-auth:hover {
    background: #f8f9fa;
    border-color: #c23321;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(219, 68, 55, 0.2);
    color: #333333;
}

.btn-google-auth i {
    color: #db4437;
    font-size: 1.1rem;
}

/* Dark tema için Google button */
[data-theme="dark"] .btn-google-auth {
    background: var(--bg-card);
    color: var(--text);
    border-color: #db4437;
}

[data-theme="dark"] .btn-google-auth:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color, #e5e7eb);
}

.auth-divider span {
    background: var(--bg-primary, #ffffff);
    padding: 0 1rem;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1rem;
}

/* Register sayfası için ek stiller - Tema sistemine uyumlu */
.register-card {
    max-width: 600px;
    padding: var(--space-2xl) var(--space-xl);
}

.form-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-lg);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.form-row {
    display: flex;
    gap: var(--space-md);
}

.form-group.half {
    flex: 1;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--border-color, #e5e7eb);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength.weak {
    background: linear-gradient(to right, #ef4444 33%, var(--border-color, #e5e7eb) 33%);
}

.password-strength.medium {
    background: linear-gradient(to right, #f59e0b 66%, var(--border-color, #e5e7eb) 66%);
}

.password-strength.strong {
    background: #10b981;
}

/* Agreement Checkbox */
.agreement-group {
    margin-bottom: 1rem;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary, #6b7280);
}

.agreement-checkbox.is-invalid {
    color: #ef4444;
}

.agreement-checkbox input[type="checkbox"] {
    display: none;
}

.agreement-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary, #001d84);
    border-color: var(--primary, #001d84);
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.agreement-text {
    flex: 1;
}

.agreement-link {
    color: var(--primary, #001d84);
    text-decoration: underline;
    font-weight: 500;
}

.agreement-link:hover {
    color: #001560;
}

/* Modal Stiller */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: var(--primary);
    color: var(--white);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h4 {
    color: var(--primary, #001d84);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body ul {
    margin-left: 1rem;
    color: var(--text-secondary, #6b7280);
}

.modal-body .contact-info {
    background: var(--bg-secondary, #f9fafb);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Dark theme uyumluluk notları - Yukarıda zaten tanımlı */

/* Dark theme container pattern kaldırıldı */

/* Dark theme form control - yukarıda zaten tanımlı, focus durumu korundu */
[data-theme="dark"] .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .invalid-feedback {
    color: var(--error);
}

/* Mobile responsive - Tema sistemine uyumlu */
@media (max-width: 768px) {
    .auth-container {
        padding: var(--space-md);
        min-height: calc(100vh - 80px);
    }
    
    .auth-card {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .register-card {
        padding: var(--space-lg);
        margin: var(--space-sm);
    }
    
    /* Mobile logo ayarları */
    .auth-logo {
        margin-bottom: var(--space-lg);
    }
    
    .auth-logo .logo {
        height: 70px;
        max-width: 240px;
    }
    
    .auth-header h1 {
        font-size: var(--text-3xl);
    }
    
    .auth-logo .logo {
        height: 70px;
        max-width: 240px;
    }
    
    .register-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .remember-me {
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .agreement-checkbox {
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}