/* ========================================================== */
/* 🔐 KİMLİK DOĞRULAMA SAYFALARI (LOGIN & REGISTER)           */
/* ========================================================== */

.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
}

/* Arka Plan Dekoru */
.auth-bg-decoration {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    max-width: 1000px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    background: rgba(24, 24, 27, 0.8); /* Yarı saydam koyu */
    backdrop-filter: blur(12px);       /* Buzlu cam efekti */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 600px; /* Daha geniş bir kart */
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Başlık Alanı */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-subtitle {
    color: #a1a1aa;
    font-size: 0.95rem;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    color: #d4d4d8;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Özel Input Grubu (İkonlu) */
.input-group-auth {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.form-control-auth {
    width: 100%;
    background: #09090b;
    border: 1px solid #27272a;
    color: #fff;
    padding: 0.8rem 1rem 0.8rem 3rem; /* İkon için soldan boşluk */
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.form-control-auth:focus {
    outline: none;
    border-color: #8b5cf6; /* Primary renk */
    background: #09090b;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}
/* Odaklanınca ikon rengi değişsin */
.form-control-auth:focus + .input-icon, 
.input-group-auth:focus-within .input-icon {
    color: #8b5cf6;
}

/* Select Kutuları */
.form-select-auth {
    background-color: #09090b;
    border-color: #27272a;
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
}
.form-select-auth:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

/* Bölüm Ayırıcı */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #52525b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #27272a;
}
.auth-divider span {
    padding: 0 1rem;
}

/* Buton */
.btn-auth {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.7);
    color: white;
}

/* Alt Linkler */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #a1a1aa;
    font-size: 0.9rem;
}
.auth-footer a {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================================== */
/* 🌐 SOSYAL GİRİŞ BUTONLARI (KÜÇÜK - LOGIN İÇİN)             */
/* ========================================================== */

.social-auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    color: #fff;
}

.btn-social:hover {
    transform: translateY(-2px);
    color: #fff; 
}

.btn-social i {
    font-size: 1.1rem;
}

/* Google Butonu */
.btn-google {
    background-color: #27272a; /* Koyu gri zemin */
    border-color: #3f3f46;
    color: #e4e4e7;
}
.btn-google:hover {
    background-color: #3f3f46;
    border-color: #52525b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Discord Butonu */
.btn-discord {
    background-color: #5865F2; /* Discord Marka Rengi */
}
.btn-discord:hover {
    background-color: #4752C4;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4); 
}

/* Mobil Uyumluluk */
@media (max-width: 576px) {
    .social-auth-buttons {
        grid-template-columns: 1fr; 
    }
}

/* ========================================================== */
/* 🚀 BÜYÜK SEÇİM BUTONLARI (REGISTER İÇİN)                   */
/* ========================================================== */

.btn-social-large {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border-radius: 1rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.btn-social-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
    color: #fff;
}

.btn-social-large .icon-box {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.btn-social-large .text-box {
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.btn-social-large .text-box strong { font-size: 1rem; }
.btn-social-large .text-box span { font-size: 0.8rem; opacity: 0.7; }

/* Renkler - Large */
.btn-social-large.btn-discord { background-color: #5865F2; }
.btn-social-large.btn-google { background-color: #27272a; border-color: #3f3f46; }
.btn-social-large.btn-email { background-color: #3f3f46; }

.btn-social-large.btn-discord:hover { background-color: #4752C4; }
.btn-social-large.btn-google:hover { background-color: #3f3f46; border-color: #52525b; }
.btn-social-large.btn-email:hover { background-color: #52525b; }

/* ========================================================== */
/* ⚠️ HESAP VAR UYARISI (ESTETİK TASARIM)                     */
/* ========================================================== */

.account-exists-card {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

/* Sol tarafa ince bir çizgi */
.account-exists-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: #fbbf24; /* Amber Rengi */
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.exists-icon {
    width: 60px; height: 60px;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.exists-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.exists-text {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-exists-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fbbf24;
    color: #18181b; /* Koyu yazı */
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-exists-login:hover {
    background-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
    color: #000;
}

/* ========================================================== */
/* 🏟️ GÖRSEL SEÇİCİLER (AVATAR & MEVKİ - YENİ)                */
/* ========================================================== */

/* Avatar Önizleme Alanı */
.avatar-selection-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}
.avatar-preview-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e56b6f; /* Varsayılan Kırmızı Takım Rengi */
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.avatar-input-group {
    flex-grow: 1;
}

/* --- YENİ TAKTİK TAHTASI GÖRÜNÜMÜ (AUTH İÇİN) --- */
.auth-tactic-board {
    position: relative;
    width: 100%;
    /* Arkaplan Görseli */
    background-image: url('../assets/arkaplan1.png');
    background-size: 200%; /* Resmi büyütüp sadece bir kısmını göster */
    background-position: center bottom;
    padding: 2rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 320px; /* Sabit yükseklik */
    justify-content: space-around; /* Slotları dikeyde yay */
    margin-bottom: 0.5rem;
}

/* Slot Yapısı (Dikdörtgen, kesik çizgili) */
.auth-tactic-slot {
    position: relative;
    width: 100%;
    max-width: 200px;
    height: 50px;
    margin: 0 auto;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tactic-slot:hover {
    border-color: var(--primary);
    background-color: rgba(139, 92, 246, 0.15); /* Primary rengin şeffaf hali */
}

/* Seçili Durum */
.auth-tactic-slot.selected {
    border-style: solid;
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Slot İçeriği (Oyuncu Hapı Görünümü) */
.auth-player-marker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0 10px;
    pointer-events: none; /* Tıklamayı slota bırak */
}

.auth-player-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-card); /* Kart rengi */
    border: 2px solid #fff;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-tactic-slot.selected .auth-player-dot {
    border-color: var(--primary);
    color: var(--primary);
}

.auth-player-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-tactic-slot.selected .auth-player-label {
    color: #fff;
    font-weight: 800;
}

.pitch-label {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
    min-height: 24px;
}

/* Mobil Düzenleme */
@media (max-width: 576px) {
    .avatar-selection-wrapper { flex-direction: column; text-align: center; }
    .auth-tactic-board { background-size: cover; }
}