/* ═══════════════════════════════════════════════════════════════════════════
   GİRİŞ — Views/Musteri/Giris.cshtml (herkese açık, girişsiz) — 22.10.2026: telefon + SMS kodu (şifre kalktı)
   Eskiden sayfa içi <style> idi; proje kuralı gereği kendi dosyasına taşındı. Adım göstergesi, geri sayım, "tekrar gönder",
   geliştirme notu ve SMS kapalı kartı Şifremi Unuttum (su-*) kalıbından; ölçüler Hesap Silme (hs-*) ile aynı.
   Renkler site.css tema değişkenleri (light/dark uyumlu). Sunucu hatası kutu içinde, alan altı doğrulama.
   ═══════════════════════════════════════════════════════════════════════════ */

.grs-wrap { max-width: 420px; margin: 0 auto; }

/* Başlık */
.grs-hero { text-align: center; padding: 18px 0 14px; }
.grs-logo { height: 56px; width: auto; border-radius: 12px; }
.grs-logo-ic {
    width: 56px; height: 56px; margin: 0 auto; border-radius: 16px;
    background: var(--red); color: #fff; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
}
.grs-hero h1 { font-size: 1.25rem; font-weight: 800; color: var(--tx); margin: 12px 0 2px; }
.grs-hero p { font-size: .8rem; color: var(--tx3); margin: 0; }

/* Adım göstergesi: 1 Telefon ─── 2 SMS Kodu (.on aktif kırmızı, .tamam bitmiş yeşil; çizgi ilerleyince dolar) */
.grs-adimlar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.grs-adim { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; color: var(--tx4); }
.grs-adim-no {
    width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--s2); border: 1px solid var(--brd); color: var(--tx4); font-size: .72rem; font-weight: 800;
}
    .grs-adim.on { color: var(--tx); }
    .grs-adim.on .grs-adim-no { background: var(--red); border-color: var(--red); color: #fff; }
    .grs-adim.tamam { color: var(--tx2); }
    .grs-adim.tamam .grs-adim-no { background: var(--grn); border-color: var(--grn); color: #fff; }
.grs-adim-cizgi { flex: 1; height: 2px; border-radius: 2px; background: var(--brd); }
    .grs-adim-cizgi.dolu { background: var(--grn); }

/* Sunucu hatası: kutu gizli başlar, mesaj gelince .goster ile açılır; kayıtsız numarada altında Üye Ol bağlantısı */
.grs-hata {
    display: none; align-items: flex-start; gap: 8px;
    background: color-mix(in srgb, var(--red) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
    color: var(--red); border-radius: 10px; padding: 9px 11px;
    font-size: .78rem; font-weight: 600; margin-bottom: 12px; line-height: 1.45;
}
    .grs-hata.goster { display: flex; }
    .grs-hata > i { flex: 0 0 auto; margin-top: 1px; }
.grs-hata-link { display: inline-block; margin-top: 4px; color: var(--red); font-weight: 800; text-decoration: underline; }
    .grs-hata-link[hidden] { display: none; }

/* "… numarasına kod gönderildi" bilgi şeridi (2. adım) */
.grs-gonderildi {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 11px 13px; border-radius: 11px; margin-bottom: 12px;
    background: var(--grn-s); border: 1px solid color-mix(in srgb, var(--grn) 30%, transparent);
    color: var(--tx2); font-size: .78rem; font-weight: 600; line-height: 1.45;
}
    .grs-gonderildi i { color: var(--grn); font-size: 1.05rem; flex: 0 0 auto; margin-top: 1px; }
    .grs-gonderildi b { color: var(--tx); }
    .grs-gonderildi a { color: var(--red); font-weight: 800; text-decoration: none; white-space: nowrap; }

/* "Giriş yapılıyor…" satırı: doğrulama isteği yoldayken — dönen ikon */
.grs-dogruluyor { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: .74rem; font-weight: 700; color: var(--tx3); }
    .grs-dogruluyor[hidden] { display: none; }
@keyframes grs-don { to { transform: rotate(360deg); } }
.grs-don { display: inline-block; animation: grs-don 1s linear infinite; }

/* Geliştirme ipucu (yalnız Development'ta görünür; sunucu gelistirme=true derse) */
.grs-gelistirme {
    display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px;
    padding: 8px 11px; border-radius: 10px; border: 1px dashed var(--brd);
    background: var(--s2); color: var(--tx3); font-size: .72rem; font-weight: 600; line-height: 1.4;
}
    .grs-gelistirme[hidden] { display: none; }
    .grs-gelistirme i { color: var(--tx4); flex: 0 0 auto; margin-top: 1px; }
    .grs-gelistirme-not:not(:empty) { display: block; margin-top: 3px; color: var(--red); font-size: .68rem; word-break: break-word; }

/* Alanlar */
.grs-alan { margin-bottom: 13px; }
.grs-lbl { display: block; font-size: .74rem; font-weight: 700; color: var(--tx2); margin-bottom: 5px; }
.grs-input-wrap { position: relative; display: flex; align-items: center; }
.grs-input {
    width: 100%; padding: 11px 12px;
    background: var(--s2); border: 1px solid var(--brd); border-radius: 10px;
    color: var(--tx); font-family: inherit; font-weight: 600;
    font-size: 16px; /* iOS: 16px altı input odaklanınca ekranı zoomlar */
}
    .grs-input:focus { outline: none; border-color: var(--red); }
    .grs-input.hatali { border-color: var(--red); }
    .grs-input:disabled { opacity: .6; }

/* Telefonun solunda sabit "0" ön eki — kullanıcı 10 haneyi 0'sız yazar (kayıt/DB biçimiyle aynı: TelefonNormalize 10 hane saklar) */
.grs-input-on { position: absolute; left: 12px; font-size: 16px; font-weight: 700; color: var(--tx4); pointer-events: none; }
.grs-input-tel { padding-left: 26px; }

/* 6 haneli kod: geniş harf aralığı, ortalı, monospace */
.grs-input-kod {
    text-align: center; letter-spacing: .45em; font-weight: 800; font-size: 1.25rem;
    font-family: 'JetBrains Mono', monospace; padding-left: calc(12px + .45em);
}
    .grs-input-kod::placeholder { letter-spacing: .45em; color: var(--tx4); font-weight: 400; }

.grs-alan-hata { display: none; font-size: .72rem; color: var(--red); font-weight: 600; margin-top: 4px; }
    .grs-alan-hata.goster { display: block; }
.grs-ipucu { font-size: .72rem; color: var(--tx4); font-weight: 600; margin-top: 6px; line-height: 1.4; }

/* Geri sayım + "Kodu tekrar gönder" satırı */
.grs-sayac { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .72rem; font-weight: 600; color: var(--tx3); }
    .grs-sayac b { color: var(--tx); font-family: 'JetBrains Mono', monospace; }
    .grs-sayac .doldu { color: var(--red); }
.grs-link-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; padding: 4px 0; cursor: pointer;
    color: var(--red); font-family: inherit; font-size: .72rem; font-weight: 800; white-space: nowrap;
}
    .grs-link-btn:disabled { color: var(--tx4); cursor: default; }

/* Ana düğme */
.grs-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--red); color: #fff; border: none; border-radius: 12px;
    padding: 13px; font-size: .92rem; font-weight: 800; font-family: inherit;
    cursor: pointer; margin-top: 4px;
}
    .grs-btn:active { transform: scale(.98); }
    .grs-btn:disabled { opacity: .6; cursor: default; }

/* "Numaram değişti" — kartın altında ortalı küçük bağlantı (eski "Şifremi unuttum" yerinde) */
.grs-unut { text-align: center; margin: 12px 0 0; font-size: .78rem; color: var(--tx3); font-weight: 600; }
    .grs-unut a { color: var(--red); font-weight: 800; text-decoration: none; margin-left: 4px; }

.grs-kayit { text-align: center; font-size: .8rem; color: var(--tx3); font-weight: 600; padding: 16px 0 4px; }
    .grs-kayit a { color: var(--red); font-weight: 800; text-decoration: none; margin-left: 4px; }

/* SMS KAPALI bilgilendirmesi: smsAyar.json Aktif=false (üretim) → sunucu form yerine bu kartı çizer (vSmsAcik=false; JS yüklenmez) */
.grs-kapali { text-align: center; }
.grs-kapali-ic {
    width: 52px; height: 52px; margin: 2px auto 10px; border-radius: 14px;
    background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
}
.grs-kapali h2 { font-size: 1rem; font-weight: 800; color: var(--tx); margin: 0 0 6px; }
.grs-kapali p { font-size: .8rem; color: var(--tx3); font-weight: 600; line-height: 1.5; margin: 0 0 14px; }
.grs-kapali-iletisim { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.grs-kapali-satir {
    display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 11px;
    background: var(--s2); border: 1px solid var(--brd); color: var(--tx); text-decoration: none;
    font-size: .88rem; font-weight: 800;
}
    .grs-kapali-satir i { color: var(--red); font-size: 1.05rem; flex: 0 0 auto; }
    .grs-kapali-satir small { display: block; font-size: .66rem; font-weight: 700; color: var(--tx4); letter-spacing: .02em; }
    .grs-kapali-satir:active { transform: scale(.985); }
.grs-kapali-sayfa { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--red); font-size: .8rem; font-weight: 800; text-decoration: none; }
