/* ==========================================================================
   Giriş ekranları (Firma kodu + Kullanıcı) — kurumsal düzen:
   üstte marka mavisi başlık alanı (beyaz logo, karşılama) · altta yukarı taşan beyaz form paneli.
   Ekran sabittir: klavye açılınca hiçbir şey yeniden dizilmez; alanlar ekranın üst yarısında durur.
   Sınıflar "gs-" önekli (Bootstrap/AdminLTE .card/.btn ile çakışmasın).
   ========================================================================== */
:root {
    --gs-mavi: #2980b7;
    --gs-mavi-koyu: #1f6a9c;
    --gs-mavi-acik: #eaf4fb;
    --gs-ink900: #142032;
    --gs-ink600: #4a5568;
    --gs-ink400: #8a94a6;
    --gs-cizgi: #e4e8ef;
    --gs-alan: #f6f8fb;
    --gs-hata: #d64545;
}

html, body { height: 100%; }
body {
    margin: 0;
    background: #fff;
    color: var(--gs-ink900);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* AdminLTE .login-page gri zemini ve ortalamasını devre dışı bırak */
.login-page { display: block !important; height: auto !important; min-height: 0 !important; background: none !important; }

.gs-sahne { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: #fff; }

/* --- Üst: marka alanı --- */
.gs-ust {
    position: relative; overflow: hidden; flex: none;
    padding: calc(30px + env(safe-area-inset-top, 0px)) 26px 58px;
    background: linear-gradient(180deg, #3390ca 0%, #2a84bd 40%, #1f6699 100%); /* üst ucu uygulamanın durum çubuğu rengiyle aynı (dikiş yok) */
    color: #fff;
}
/* ince nokta deseni + iki yumuşak halka (derinlik) */
.gs-ust::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 70%); mask-image: linear-gradient(200deg, #000 0%, transparent 70%);
}
.gs-halka { position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(255, 255, 255, .14); }
.gs-halka.h1 { width: 320px; height: 320px; right: -120px; top: -150px; background: radial-gradient(closest-side, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0)); }
.gs-halka.h2 { width: 190px; height: 190px; right: -40px; top: -60px; }

.gs-logo { position: relative; display: block; height: 34px; width: auto; }
.gs-baslik {
    position: relative; margin: 30px 0 0;
    font-family: "Sora", "Inter", -apple-system, sans-serif;
    font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -.2px; color: #fff;
}
.gs-alt-baslik { position: relative; margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .78); }

/* Kullanıcı ekranı: seçili firma kodu rozeti (başlık alanında) */
.gs-firma {
    position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
    padding: 5px 5px 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
    font-size: 13px; color: rgba(255, 255, 255, .85);
}
.gs-firma b { color: #fff; font-weight: 700; letter-spacing: .5px; }
.gs-firma a {
    padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--gs-mavi-koyu);
    font-size: 12px; font-weight: 700; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.gs-firma a:hover, .gs-firma a:focus, .gs-firma a:active { color: var(--gs-mavi-koyu); text-decoration: none; }

/* --- Alt: form paneli (başlık alanının üstüne taşar) --- */
.gs-panel {
    position: relative; flex: 1; display: flex; flex-direction: column;
    margin-top: -28px; padding: 28px 22px calc(18px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 24px rgba(20, 32, 50, .06);
}
.gs-icerik { width: 100%; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; flex: 1; }
.gs-panel-baslik { margin: 0 2px 14px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--gs-ink400); }
.gs-form { display: flex; flex-direction: column; gap: 12px; }

/* --- Alan: içinde küçük etiket + değer --- */
.gs-alan {
    position: relative; display: flex; align-items: center; height: 58px;
    background: var(--gs-alan); border: 1px solid var(--gs-cizgi); border-radius: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.gs-alan:focus-within { background: #fff; border-color: var(--gs-mavi); box-shadow: 0 0 0 3px rgba(41, 128, 183, .14); }
.gs-alan.hatali { border-color: var(--gs-hata); box-shadow: 0 0 0 3px rgba(214, 69, 69, .10); }
.gs-alan > svg.gs-on { flex: none; width: 20px; height: 20px; margin: 0 12px 0 15px; color: var(--gs-ink400); transition: color .15s ease; }
.gs-alan:focus-within > svg.gs-on { color: var(--gs-mavi); }
.gs-yigin { flex: 1; min-width: 0; height: 100%; position: relative; }
.gs-ic-etiket { position: absolute; left: 0; top: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .2px; color: var(--gs-ink400); pointer-events: none; transition: color .15s ease; }
.gs-alan:focus-within .gs-ic-etiket { color: var(--gs-mavi); }
.gs-girdi {
    display: block; width: 100%; height: 100%; padding: 18px 14px 0 0; margin: 0; box-sizing: border-box;
    border: 0; outline: none; background: transparent; border-radius: 0;
    font-family: inherit; font-size: 16px; font-weight: 500; line-height: normal; color: var(--gs-ink900);
    -webkit-appearance: none; appearance: none;
}
.gs-girdi::placeholder { color: #b3bbc8; font-weight: 400; opacity: 1; }
select.gs-girdi { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
.gs-alan .gs-ok { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--gs-ink400); pointer-events: none; }
.gs-goz {
    flex: none; width: 50px; height: 100%; padding: 0; border: 0; background: none; color: var(--gs-ink400);
    display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.gs-goz svg { width: 20px; height: 20px; }

/* --- Hata --- */
.gs-hata { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
           background: rgba(214, 69, 69, .07); color: var(--gs-hata); font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.gs-hata svg { flex: none; width: 20px; height: 20px; }
.gs-dogrulama .text-danger { display: block; margin: 6px 0 0 4px; color: var(--gs-hata) !important; font-size: 12.5px; font-weight: 600; }
.gs-dogrulama .text-danger.field-validation-valid, .gs-dogrulama .text-danger:empty { display: none; }

/* --- Buton --- */
.gs-buton {
    position: relative; width: 100%; height: 54px; margin-top: 4px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(180deg, #3190cc 0%, #2980b7 55%, #2474a7 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px rgba(41, 128, 183, .28);
    color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: .1px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    -webkit-tap-highlight-color: transparent; transition: transform .12s ease, filter .12s ease;
}
.gs-buton:active { transform: scale(.985); filter: brightness(.95); }
.gs-buton svg { width: 18px; height: 18px; }
.gs-buton .gs-donen { display: none; width: 20px; height: 20px; border-radius: 50%;
                      border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: gs-don .7s linear infinite; }
.gs-buton.yukleniyor { pointer-events: none; }
.gs-buton.yukleniyor > :not(.gs-donen) { display: none; }
.gs-buton.yukleniyor .gs-donen { display: block; }
@keyframes gs-don { to { transform: rotate(360deg); } }

/* --- Beni hatırla (anahtar) --- */
.gs-satir { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.gs-anahtar { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gs-ink600); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.gs-anahtar input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gs-anahtar .ray { position: relative; width: 42px; height: 26px; border-radius: 999px; background: #d5dbe4; transition: background .2s ease; flex: none; }
.gs-anahtar .ray::after { content: ""; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
                          box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.gs-anahtar input:checked + .ray { background: var(--gs-mavi); }
.gs-anahtar input:checked + .ray::after { transform: translateX(16px); }

.gs-not { display: flex; gap: 8px; margin: 16px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--gs-ink400); }
.gs-not svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }

/* --- Panel altı: sosyal + telif --- */
.gs-alt { margin-top: auto; padding-top: 26px; }
.gs-sosyal { display: flex; justify-content: center; gap: 14px; }
.gs-sosyal a {
    width: 40px; height: 40px; border-radius: 50%; box-sizing: border-box;
    border: 1px solid var(--gs-cizgi); background: #fff; color: var(--gs-ink400);
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gs-sosyal a:hover, .gs-sosyal a:active { background: var(--gs-mavi-acik); border-color: var(--gs-mavi); color: var(--gs-mavi); }
.gs-sosyal svg { width: 18px; height: 18px; }
.gs-telif { margin-top: 12px; text-align: center; font-size: 11.5px; color: #a9b1be; letter-spacing: .2px; }
.gs-telif a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Geniş ekran (tablet/masaüstü): başlık alanı ortada dar sütun */
@media (min-width: 600px) {
    .gs-ust { padding-left: max(26px, calc(50% - 210px)); padding-right: max(26px, calc(50% - 210px)); }
}

/* Kullanıcı ekranı: kısa başlık alanı (logo + firma rozeti aynı satırda) */
.gs-ust-kisa { padding-top: calc(22px + env(safe-area-inset-top, 0px)); padding-bottom: 52px; }
.gs-ust-satir { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gs-ust-satir .gs-firma { margin-top: 0; }
.gs-ust-kisa .gs-baslik { margin-top: 22px; font-size: 24px; }
.gs-ust-kisa .gs-alt-baslik { margin-top: 6px; font-size: 14px; }

/* Uygulama içinde: durum çubuğu / alt boşluk uygulamanın kendi şeritlerinde; sayfa çentik payını ikinci kez eklemesin */
html.uygulama .gs-ust { padding-top: 26px; }
html.uygulama .gs-ust-kisa { padding-top: 20px; }
html.uygulama .gs-panel { padding-bottom: 18px; }

/* Giriş sayfası ekrandan taşmasın (kaydırılacak bir şey kalmasın) — iPhone klavye açılınca sayfa kaymasın */
html.gs-sigiyor, html.gs-sigiyor body { overflow: hidden; overscroll-behavior: none; }
