/* -- AUTH SAYFASI (GİRİŞ/KAYIT) GENEL YAPI -- */
.auth-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    background-color: #0a0a0a; 
    overflow-y: auto; 
    overflow-x: hidden; /* Yanlışlıkla sağa sola kaymayı engeller */
    padding: 40px 20px;
}

.auth-box { 
    background-color: #111; 
    padding: 40px; 
    border-radius: 12px; 
    border: 1px solid #ff007f; 
    width: 450px; 
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.2); 
    margin: auto auto 50px auto; /* Menüler aşağı açıldığında sayfanın kayabilmesi için alt boşluk */
    transition: border-color 0.4s ease; 
}

.auth-box h2 { text-align: center; margin-bottom: 20px; color: #fff; }
.auth-box input { width: 100%; padding: 14px; margin: 8px 0; background: #1a1a1a; border: 1px solid #333; color: #00ff88; border-radius: 8px; outline: none; font-size: 14px; transition: 0.3s; }
.auth-box input:focus { border-color: #ff007f; }

.auth-btn { width: 100%; padding: 14px; background: #ff007f; border: none; color: white; font-weight: bold; border-radius: 8px; cursor: pointer; margin-top: 15px; font-size: 16px; transition: 0.3s; }
.auth-btn:hover { background: #d8006b; transform: translateY(-2px); }

/* -- ÜST GEÇİŞ BUTONU (TOGGLE PILL) -- */
.auth-toggle { position: relative; display: flex; background: #1a1a1a; border-radius: 30px; margin-bottom: 25px; padding: 5px; border: 1px solid #333; }
.toggle-btn { flex: 1; padding: 12px; background: transparent; border: none; color: #888; font-weight: bold; font-size: 15px; cursor: pointer; z-index: 1; transition: 0.3s; }
.toggle-btn.active { color: #fff; }
.toggle-bg { position: absolute; top: 5px; left: 5px; width: calc(50% - 5px); height: calc(100% - 10px); background: #ff007f; border-radius: 25px; transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.auth-toggle.register-active .toggle-bg { left: 50%; background: #00ff88; }

/* -- FORM SLIDER (KAYDIRMA ANİMASYONU) -- */
.auth-forms-wrapper { 
    position: relative; 
    overflow: visible; /* ESKİDEN HIDDEN İDİ, MENÜLERİ KESTİĞİ İÇİN VISIBLE YAPILDI */
    width: 100%; 
}
.auth-form-step { width: 100%; padding: 5px 0; transition: transform 0.4s ease-in-out, opacity 0.3s ease; }

/* Giriş Aktif Olduğunda */
.show-login #loginStep { transform: translateX(0); opacity: 1; position: relative; pointer-events: auto; }
.show-login #registerStep { transform: translateX(100%); opacity: 0; position: absolute; top: 0; left: 0; pointer-events: none; }

/* Kayıt Aktif Olduğunda */
.show-register #loginStep { transform: translateX(-100%); opacity: 0; position: absolute; top: 0; left: 0; pointer-events: none; }
.show-register #registerStep { transform: translateX(0); opacity: 1; position: relative; pointer-events: auto; }

/* -- MODERN ARAMALI SEÇİM KUTULARI (CUSTOM SELECT) -- */
.custom-select-wrapper { position: relative; width: 100%; margin: 8px 0; }
.custom-select-trigger { background: #1a1a1a; border: 1px solid #333; padding: 14px 20px; border-radius: 8px; color: #888; cursor: pointer; font-size: 14px; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; user-select: none; }
.custom-select-trigger.has-value { color: #00ff88; border-color: #333; }
.custom-select-trigger::after { content: '▼'; font-size: 10px; color: #555; transition: 0.3s; }
.custom-select-trigger.active { border-color: #ff007f; }
.custom-select-trigger.active::after { transform: rotate(180deg); color: #ff007f; }
.custom-select-trigger.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; background: #0a0a0a; }

.custom-select-menu { 
    position: absolute; 
    top: calc(100% + 5px); 
    left: 0; 
    right: 0; 
    background: #111; 
    border: 1px solid #333; 
    border-radius: 8px; 
    z-index: 9999; /* Katman değeri en üste alındı */
    display: none; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.9); 
    overflow: hidden; 
}
.custom-select-menu.open { display: block; animation: dropDownFade 0.2s ease forwards; }
.custom-select-search { width: calc(100% - 20px); margin: 10px; padding: 12px 15px; background: #000; border: 1px solid #333; color: #fff; border-radius: 6px; outline: none; font-size: 14px; transition: 0.3s; }
.custom-select-search:focus { border-color: #00ff88; }

.custom-select-options { max-height: 250px; overflow-y: auto; padding-bottom: 5px; }
.custom-select-options::-webkit-scrollbar { width: 6px; }
.custom-select-options::-webkit-scrollbar-thumb { background-color: #444; border-radius: 10px; }
.custom-select-option { padding: 12px 20px; color: #bbb; cursor: pointer; transition: 0.2s; font-size: 14px; border-bottom: 1px solid #1a1a1a; word-wrap: break-word; }
.custom-select-option:hover { background: #1a1a1a; color: #00ff88; padding-left: 25px; }
.custom-select-option.no-result { cursor: default; color: #ff0044; text-align: center; border: none; }
.custom-select-option.no-result:hover { background: transparent; padding-left: 20px; }

@keyframes dropDownFade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* -- ALT BİLGİLER VE BUTONLAR -- */
.toggle-text { color: #00ff88; font-size: 14px; text-align: center; margin-top: 20px; cursor: pointer; transition: 0.2s; }
.toggle-text:hover { color: #fff; text-decoration: underline; }
.forgot-pass-text { color: #ff007f; font-size: 12px; text-align: right; cursor: pointer; margin-top: 5px; display: block; }
.forgot-pass-text:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; text-align: center; margin: 20px 0; color: #555; font-size: 12px; font-weight: bold; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid #333; }
.divider:not(:empty)::before { margin-right: 1em; }
.divider:not(:empty)::after { margin-left: 1em; }
.google-btn { width: 100%; padding: 12px; background: #fff; color: #000; font-weight: bold; border-radius: 8px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; border: none; transition: 0.3s; }
.google-btn:hover { background: #ddd; }

/* -- MİSAFİR GİRİŞ BUTONU (GHOST BTN) -- */
.guest-btn { width: 100%; padding: 14px; background: rgba(255, 255, 255, 0.03); border: 1px dashed #555; color: #aaa; font-weight: bold; border-radius: 8px; cursor: pointer; margin-top: 15px; font-size: 14px; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px; }
.guest-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: #00ff88; transform: translateY(-2px); }

/* -- DOĞRULAMA MODALI VE DOSYA YÜKLEME KUTUSU -- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); display: none; justify-content: center; align-items: center; z-index: 1000; }

.file-upload-box { 
    background: rgba(0, 255, 136, 0.05); 
    border: 2px dashed #00ff88; 
    border-radius: 12px; 
    padding: 30px 20px; 
    text-align: center; 
    color: #00ff88; 
    cursor: pointer; 
    margin: 20px 0; 
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.file-upload-box:hover { background: rgba(0, 255, 136, 0.1); }
#fileNameText { font-size: 14px; font-weight: 500; word-break: break-all; max-width: 100%; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; transition: 0.3s; }
::-webkit-scrollbar-thumb:hover { background: #ff007f; }