﻿/* ============================================================
   ePetim Auth Sayfalari (Kayit / GirisYap / SifreUnuttum /
   SifreSifirla / EpostaDogrula).
   ============================================================ */

/* ---- Sayfa iskeleti ----
   .ep-auth-shell flex:1 ile kalan boslugu yut. footer'in mt-auto'su
   bu sayfalarda fazladan bosluk yaratmasin diye.
   >=992px: iki sutun (solda .ep-auth-visual, sagda .ep-auth-main) +
   max-width/margin:auto ile sayfada ortala. <992px: visual gizle. */
.ep-auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ep-bg);
}

.ep-auth-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .ep-auth-shell {
        max-width: 1180px;
        width: 100%;
        margin: 2.5rem auto;
        border: 1px solid var(--ep-border);
        border-radius: var(--ep-r-card);
        overflow: hidden;
    }
}

.ep-auth-visual {
    display: none;
}

.ep-auth-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 2rem;
}

.ep-auth-wrap {
    width: 100%;
    max-width: 460px;
}

/* Kayıt formu üç satır × iki sütun (Ad|Soyad, E-posta|Telefon,
   Şifre|Şifre Tekrar) — 460px'te sıkışıyor, sayfada kart bir tık geniş. */
.ep-auth-wrap-genis {
    max-width: 520px;
}

.ep-auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
    text-decoration: none;
}

    .ep-auth-logo img {
        height: 64px;
        width: auto;
    }

@media (min-width: 768px) {
    .ep-auth-logo img {
        height: 72px;
    }
}

/* ============================================================
   Masaustu (>=992px): sol gorsel panel + sag form.
   Markup: _AuthGorselPanel.cshtml. Doku SVG nokta deseniyle ver
   (CSS gradient degil). Kartin kucuk logosu bu genislikte gizle. */
@media (min-width: 992px) {
    .ep-auth-shell {
        flex-direction: row;
        align-items: stretch;
    }

    /* Üstten hizalı: dikey ortalama, uzun formlarda (Kayıt) paneli sayfanın
       ortasına itip başlığı formdan çok aşağıda bırakıyordu. */
    .ep-auth-visual {
        display: flex;
        flex-direction: column;
        width: 48%;
        max-width: 560px;
        padding: 4rem 2.5rem 0;
        overflow: hidden;
    }

    .ep-auth-wrap .ep-auth-logo {
        display: none;
    }
}

.ep-auth-shell {
    background-color: var(--ep-surface-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%234f46e5' fill-opacity='0.05'%3E%3Cellipse cx='40' cy='52' rx='10' ry='7.5'/%3E%3Ccircle cx='25' cy='39' r='4.2'/%3E%3Ccircle cx='34' cy='32' r='4.5'/%3E%3Ccircle cx='46' cy='32' r='4.5'/%3E%3Ccircle cx='55' cy='39' r='4.2'/%3E%3Cellipse cx='12' cy='18' rx='6' ry='4.5'/%3E%3Ccircle cx='3' cy='10' r='2.5'/%3E%3Ccircle cx='8' cy='6' r='2.7'/%3E%3Ccircle cx='16' cy='6' r='2.7'/%3E%3Ccircle cx='21' cy='10' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
}

.ep-auth-visual {
    background: transparent;
    border-right: 1px solid var(--ep-border);
}

.ep-auth-visual h3 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.28;
    color: var(--ep-text);
    margin: 0 auto 1rem;
    letter-spacing: -.4px;
    max-width: 380px;
    text-align: center;
}

    .ep-auth-visual h3 .ep-auth-visual-accent {
        color: var(--ep-primary-ink);
    }

.ep-auth-visual p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ep-text-2);
    margin: 0 auto;
    max-width: 340px;
    text-align: center;
}

/* ---- Telefon maketleri ----
   Kutu SABIT yukseklikte ve metnin hemen altinda dursun; flex:1 ile
   uzatilirsa uzun formlarda (Kayit) sayfanin cok asagisina kayiyor. */
.ep-auth-visual-phones {
    position: relative;
    width: 380px;
    height: 510px;
    margin: 2.5rem auto 0;
    flex: none;
}

.ep-phone-mock {
    --phone-bezel: var(--ep-text);
    position: absolute;
    top: 0;
    border: 8px solid var(--phone-bezel);
    background: var(--phone-bezel);
    border-radius: 34px;
    overflow: hidden;
    width: 210px;
    aspect-ratio: 390 / 844;
}

    /* Cihaz cercevesiyle ayni renk; kucuk olcekte oransal kalmasi icin
       gercek bir dynamic island'dan daha kucuk. */
    .ep-phone-mock::after {
        content: "";
        position: absolute;
        top: 9px;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 12px;
        background: var(--phone-bezel);
        border-radius: 6px;
        z-index: 3;
    }

    .ep-phone-mock img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
    }

/* Ikisi de kutunun tepesine (top:0) sabitle; negatif offset kullanma,
   .ep-auth-visual'in overflow:hidden'i tasmayi kirpar. Derinlik hissi
   yatay kaydirma + boyut + z-index farkiyla ver. */
.ep-phone-mock.ep-phone-back {
    left: 0;
    top: 30px;
    width: 186px;
    z-index: 1;
}

.ep-phone-mock.ep-phone-front {
    left: 148px;
    top: 0;
    width: 230px;
    z-index: 2;
}

/* ---- Kart ---- */
.ep-auth-card {
    border-top: 3px solid var(--ep-primary);
}

.ep-auth-card .ep-card-body {
    padding: 2.25rem 2rem;
}

@media (max-width: 480px) {
    .ep-auth-card .ep-card-body {
        padding: 1.5rem 1.25rem;
    }
}

/* ---- Baslik rozeti: kart basinda ikonlu, tonlu bir amblem ---- */
.ep-auth-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--ep-primary-50);
    color: var(--ep-primary-ink);
    font-size: 21px;
    margin-bottom: 1rem;
}

.ep-auth-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--ep-text);
    margin-bottom: 5px;
    letter-spacing: -.2px;
}

.ep-auth-sub {
    font-size: 13px;
    color: var(--ep-muted);
    margin-bottom: 1.75rem;
    line-height: 1.55;
}

.ep-auth-foot {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 13px;
    color: var(--ep-muted);
}

.ep-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ep-muted);
    text-decoration: none;
}

    .ep-auth-back:hover {
        color: var(--ep-primary-ink);
    }

/* ============================================================
   Pill input: ikon alanin icine gomulu, tek parca gorunum.
   ============================================================ */

.ep-auth-card .form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-text-2);
    margin-bottom: 6px;
}

.ep-auth-card .input-group {
    position: relative;
}

.ep-auth-card .input-group-text {
    position: absolute;
    left: 2px;
    top: 2px;
    bottom: 2px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--ep-muted);
    font-size: 14.5px;
    z-index: 10 !important;
    pointer-events: none;
    border-radius: calc(var(--ep-r-item) - 2px) 0 0 calc(var(--ep-r-item) - 2px);
}

.ep-auth-card .input-group .form-control {
    height: 50px;
    padding-left: 46px;
    border-radius: var(--ep-r-item) !important;
    background: var(--ep-surface-2);
    border: 1.5px solid var(--ep-border-2);
    font-size: 14.5px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* NOT: yukaridaki 14.5px yalnizca masaustunde gecerli. Mobilde
   epetim-modern.css'teki "iOS otomatik yakinlastirma" kurali bunu
   16px'e cikarir; 16px altindaki alanlara odaklaninca iOS sayfayi
   kendiliginden yakinlastiriyor. */

    .ep-auth-card .input-group .form-control:focus {
        background: var(--ep-surface);
        border-color: var(--ep-primary);
        box-shadow: 0 0 0 3px var(--ep-primary-50);
    }

    .ep-auth-card .input-group:focus-within .input-group-text {
        color: var(--ep-primary-ink);
    }

/* Sifre goster/gizle dugmesi; giris.js/kayit.js/sifresifirla.js JS ile
   "btn btn-light border-0" ekliyor. */
.ep-auth-card .input-group .btn-light {
    height: 50px;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-surface-2);
    color: var(--ep-muted);
    border: 1.5px solid var(--ep-border-2);
    border-left: none;
    border-radius: 0 var(--ep-r-item) var(--ep-r-item) 0 !important;
}

    .ep-auth-card .input-group .btn-light:hover {
        background: var(--ep-hover);
        color: var(--ep-text-2);
    }

/* Turnstile kendi iframe'inde cizilir, sayfa CSS'i ona ulasmaz; tema
   JS'ten render parametresiyle verilir. Burada sadece saran kutu. */
.ep-auth-turnstile {
    padding: .6rem;
    border-radius: var(--ep-r-item);
    background: var(--ep-surface-2);
    border: 1px solid var(--ep-border-2);
    display: flex;
    justify-content: center;
}

/* Sifre gucu cubugu (Kayit) */
.ep-auth-strength {
    margin-top: .85rem;
}

    .ep-auth-strength .progress {
        height: 6px;
        border-radius: 999px;
        background: var(--ep-surface-3);
        overflow: hidden;
    }

    .ep-auth-strength small {
        font-size: 11px;
        color: var(--ep-muted);
    }

    /* kayit.js sifre gucune gore ham bg-* siniflari takiyor; JS'e
       dokunmadan aksan paletine bagla. */
    .ep-auth-strength .progress-bar.bg-danger {
        background-color: var(--ep-red) !important;
    }

    .ep-auth-strength .progress-bar.bg-warning {
        background-color: var(--ep-amber) !important;
    }

    .ep-auth-strength .progress-bar.bg-info {
        background-color: var(--ep-blue) !important;
    }

    .ep-auth-strength .progress-bar.bg-success {
        background-color: var(--ep-green) !important;
    }

/* ============================================================
   Tablet / genis mobil
   ============================================================ */
@media (min-width: 577px) and (max-width: 991px) {
    .ep-auth-main {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }
}

/* ============================================================
   Sticky header + mobil alt sekme çubuğu (diğer public sayfalarla aynı desen).
   Kart içindeki .ep-auth-logo artık her genişlikte gizli — logoyu header taşıyor.
   ============================================================ */
.ep-auth-ust {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--ep-border);
    padding: 13px 0;
    z-index: 1030;
}

.ep-auth-ust-ic {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ep-auth-ust-logo img {
    height: 44px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.ep-auth-ust-nav {
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.ep-auth-ust-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--ep-text-2);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}

.ep-auth-ust-nav a:hover {
    color: var(--ep-primary-ink);
    background: var(--ep-primary-50);
}

.ep-auth-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--ep-border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.ep-auth-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    margin: 0 2px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ep-text-2);
    text-decoration: none;
    flex: 1 1 0;
    transition: color .15s ease, background-color .15s ease;
}

.ep-auth-tab i {
    font-size: 19px;
    line-height: 1.2;
}

.ep-auth-tab:hover,
.ep-auth-tab.active {
    color: var(--ep-primary-ink);
    background: var(--ep-primary-50);
}

/* Logo header'a taşındı; karttaki kopya her genişlikte kapalı. */
.ep-auth-wrap .ep-auth-logo {
    display: none;
}

@media (min-width: 992px) {
    .ep-auth-tabbar {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .ep-auth-body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    /* Nav bağlantıları alt çubuğa taşındı; logo tek başına kaldığı için ortalanır. */
    .ep-auth-ust-ic {
        justify-content: center;
    }
}
