/* ==========================================================================
   EKA REKLAM - MODERN SPLIT SCREEN LOGIN & AUTHENTICATION STYLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Temel Gövde Sıfırlaması */
body.customers_login, body {
    background-color: #f1f5f9 !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important; 
}

/* Perfex Varsayılan İskeletini Gizleme, Sadece Sıfırla */
#wrapper { 
    margin: 0 !important; 
    padding: 0 !important; 
    width: 100% !important; 
    min-height: 100vh !important;
}

/* TÜM EKRANI KAPLAYAN VE MOBİLDE KAYMAYI ÖNLEYEN ZIRH (Kusursuz Responsive) */
.eka-fullscreen-wrapper {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #f1f5f9 !important;
    z-index: 99999 !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important; /* Sağa sola kaymayı KESİNLİKLE engeller */
    font-family: 'Inter', sans-serif !important;
}

/* Ana Kapsayıcı (Kart) */
.eka-split-card {
    display: flex;
    width: 100%;
    max-width: 1050px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    margin: auto;
    box-sizing: border-box !important;
}

/* Sol Taraf (Form Alanı) */
.eka-form-side {
    flex: 1.3;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    background: #ffffff;
    box-sizing: border-box !important;
    width: 100%;
}

.eka-form-side-inner {
    width: 100%;
    max-width: 420px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box !important;
}

/* Register sayfası için form alanını biraz genişletelim */
.eka-form-side-inner.register-inner {
    max-width: 100%;
}

.eka-form-header {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.eka-logo-wrapper {
    margin-bottom: 20px;
}

.eka-logo-wrapper img {
    max-height: 45px;
    width: auto;
    max-width: 100%;
}

.eka-form-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.eka-form-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Sağ Taraf (Görsel Alan) */
.eka-visual-side {
    flex: 1;
    background: linear-gradient(135deg, #010ED0 0%, #2b38e6 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.eka-visual-side::before, .eka-visual-side::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.eka-visual-side::before { top: -50px; right: -50px; width: 300px; height: 300px; filter: blur(40px); }
.eka-visual-side::after { bottom: -50px; left: -50px; width: 250px; height: 250px; filter: blur(30px); }

.eka-visual-content { position: relative; z-index: 2; }
.eka-visual-content h2 { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 16px; line-height: 1.3; }
.eka-visual-content p { font-size: 15px; color: rgba(255, 255, 255, 0.85); line-height: 1.6; }

/* Form Elemanları ve Inputlar */
form { width: 100%; box-sizing: border-box !important; margin: 0; padding: 0; }
.form-group { margin-bottom: 20px; width: 100%; box-sizing: border-box !important; }

.eka-form-side .control-label {
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
    font-size: 13px;
    display: inline-block;
    width: 100%;
}

.eka-form-side .text-center .control-label { text-align: center; }

.eka-form-side input[type="text"].form-control,
.eka-form-side input[type="password"].form-control,
.eka-form-side input[type="email"].form-control {
    border-radius: 10px;
    height: 48px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    padding: 0 16px;
    box-shadow: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box !important;
}

.eka-form-side input.form-control:focus {
    border-color: #010ED0;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(1, 14, 208, 0.1) !important;
    outline: none;
}

/* Bootstrap Selectpicker & Checkbox Fixes */
.eka-form-side .bootstrap-select > .dropdown-toggle {
    border-radius: 10px; height: 48px; border: 1px solid #e2e8f0; background-color: #f8fafc; box-shadow: none !important; display: flex; align-items: center; font-size: 14px;
}
.eka-form-side .checkbox { display: flex; align-items: center; margin-top: 10px; margin-bottom: 20px; }
.eka-form-side .checkbox label { padding-left: 25px; color: #475569; font-size: 13px; font-weight: 500; }
.eka-form-side .checkbox label a { color: #010ED0; font-weight: 600; text-decoration: underline; }
.eka-form-side .checkbox input[type="checkbox"] { margin-left: -25px; margin-top: 1px; width: 16px; height: 16px; cursor: pointer; accent-color: #010ED0; }

/* Özel OTP (Doğrulama) Inputları */
.eka-otp-input, #wa_otp, #otp_code {
    border-radius: 12px !important;
    height: 60px !important;
    font-size: 24px !important;
    letter-spacing: 8px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: 1px solid #cbd5e1 !important;
    color: #010ED0 !important;
    background-color: #f8fafc !important;
    width: 100% !important;
    padding-left: 16px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.eka-otp-input:focus, #wa_otp:focus, #otp_code:focus {
    border-color: #010ED0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(1, 14, 208, 0.1) !important;
    outline: none !important;
}

.eka-otp-group { display: flex; gap: 15px; margin-bottom: 25px; width: 100%; box-sizing: border-box !important; }
.eka-otp-group .form-group { flex: 1; margin-bottom: 0; }

/* Butonlar */
.eka-form-side .btn {
    border-radius: 10px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
}
.eka-form-side .btn-primary { background-color: #010ED0; color: #fff; }
.eka-form-side .btn-primary:not([disabled]):hover { background-color: #000a9e; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(1, 14, 208, 0.5); }
.eka-form-side .btn-success { background-color: #10b981; color: #fff; }
.eka-form-side .btn-success:not([disabled]):hover { background-color: #059669; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.4); }
.eka-form-side .btn-info { background-color: #010ED0; color: #fff; }
.eka-form-side .btn-info:not([disabled]):hover { background-color: #000a9e; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(1, 14, 208, 0.5); }
.eka-form-side .btn-default { border: 1px solid #e2e8f0; color: #475569; background: transparent; margin-top: 10px;}
.eka-form-side .btn-default:hover { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }

.eka-form-side .btn-whatsapp { background-color: #25D366 !important; color: #ffffff !important; height: 60px; border-radius: 12px; gap: 10px; }
.eka-form-side .btn-whatsapp:hover { background-color: #128C7E !important; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.5); }
.eka-form-side .btn-email { background-color: #010ED0 !important; color: #ffffff !important; height: 60px; border-radius: 12px; gap: 10px; }
.eka-form-side .btn-email:hover { background-color: #000a9e !important; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(1, 14, 208, 0.5); }

/* Yarımlar ve Metinler */
.eka-form-side .alert { border-radius: 10px; font-size: 13px; padding: 12px 15px; border: none; width: 100%; box-sizing: border-box !important; }
.eka-form-side .alert-danger { background-color: #fef2f2; color: #b91c1c; }
.eka-form-side .alert-info { background-color: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }

.eka-form-side .text-muted { color: #64748b !important; font-weight: 500; font-size: 14px; transition: color 0.2s; display: inline-flex; align-items: center; justify-content: center; width: 100%; gap: 6px; }
.eka-form-side .text-muted:hover { color: #010ED0 !important; text-decoration: none; }

/* Grid Fixleri (Register vb için) */
.eka-form-side .row { display: flex; flex-wrap: wrap; margin-left: -10px; margin-right: -10px; width: calc(100% + 20px); }
.eka-form-side .col-md-6 { padding-left: 10px; padding-right: 10px; width: 50%; box-sizing: border-box !important; }

/* Google reCAPTCHA yatay kayma engeli */
.g-recaptcha { max-width: 100%; overflow: hidden; }

/* %100 MOBİL UYUMLULUK (RESPONSIVE KÖK ÇÖZÜM) */
@media (max-width: 992px) {
    .eka-fullscreen-wrapper { 
        padding: 15px !important; 
        align-items: flex-start !important; /* Uzun formların tepeden scroll olmasını sağlar */
    }
    .eka-split-card { 
        flex-direction: column; 
        max-width: 500px; 
        margin: auto; /* Kısaysa merkeze çeker, uzunsa tepeye yaslar */
    }
    .eka-visual-side { display: none !important; }
    .eka-form-side { padding: 35px 25px; }
    .eka-form-header h1 { font-size: 22px; }
    .eka-form-side .col-md-6 { width: 100%; } /* Register alanlarını mobilde alt alta diz */
}

@media (max-width: 576px) {
    .eka-otp-group { flex-direction: column; gap: 15px; }
}

/* ==========================================================================
   POP-UP VE MODAL Z-INDEX DÜZELTMELERİ
   Kapsayıcının (99999) üstüne çıkabilmeleri için katmanları yükseltildi
   ========================================================================== */

/* Sözleşme Modalları (KVKK, Kullanıcı Sözleşmesi) */
.modal {
    z-index: 100005 !important;
}

/* Arka planı karartan siyah perde */
.modal-backdrop {
    z-index: 100004 !important;
}

/* SweetAlert2 Pop-upları (Uyarı/Hata Mesajları) */
.swal2-container {
    z-index: 100006 !important;
}

/* ==========================================================================
   POP-UP (MODAL) KUSURSUZ MERKEZLEME VE İÇ SCROLL AYARLARI
   ========================================================================== */

/* Bootstrap JS'in eklediği display:block değerini yakalayıp flex'e çevirerek tam merkeze kilitleriz */
.modal[style*="display: block"], 
.modal[style*="display: flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important; /* Mobilde kenarlara yapışmaması için nefes boşluğu */
}

/* Modalin dış iskeletinin varsayılan yukarıdan itme (margin) huyunu sıfırlıyoruz */
.modal-dialog {
    margin: 0 !important; 
    width: 100%;
    max-width: 600px; /* Pop-up'ın çok fazla uzamasını engeller */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* İçeriğin bulunduğu asıl beyaz kart */
.modal-content {
    width: 100%;
    max-height: 85vh; /* Pop-up boyu ekranın %85'ini geçemez */
    overflow-y: auto; /* Eğer sözleşme metni çok uzunsa kendi içinde scroll çıkarır */
    border-radius: 16px !important; /* Ana tasarıma uyumlu tatlı kavisler */
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25) !important;
    border: none !important;
}

/* Modal içi gizli kaydırma çubuğu (Scrollbar) tasarımı */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; margin: 15px 0; }
.modal-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #94a3b8; }