/* ══════════════════════════════════════
   GARANTİ BBVA — app.css
   Referans görseller baz alınarak sıfırdan yazıldı
   Mobil öncelikli: 375px
   ══════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: #e0e0e0;
}

/* ──────────────────────────────────────
   APP WRAPPER
────────────────────────────────────── */
.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* ──────────────────────────────────────
   SPLASH — beyaz bg, renkli logo ortada
────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo-img {
  height: 52px;
  width: auto;
}

/* ──────────────────────────────────────
   SCREEN
────────────────────────────────────── */
.screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* ══════════════════════════════════════
   GÖRSEL 1 — KARŞILAMA EKRANI
   Referans ölçüler:
   - Tam ekran manzara fotoğrafı arka plan
   - Header: EN(sol) | Logo(orta) | Bell(sağ)
   - Kart: Hoş Geldiniz(ortalı) + 2 outlined tab + Müşteri Ol
   - Promo banner: yarı şeffaf, profil fotoğrafı, metin
   - Alt nav: koyu gri bg, 4 daire teal ikon
   ══════════════════════════════════════ */

.welcome-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* Gerçek manzara fotoğrafı */
  background: url('./pngtree-nature-beautiful-background-hd-picture-image_15490583.jpg')
    center / cover no-repeat;
}

/* ── Header ── */
.w-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 14px 0;
}

/* EN pill — sol */
.w-lang {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Logo — orta, absolute */
.w-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.w-logo img {
  height: 22px;
  width: auto;
  /* Beyaz filtre: yeşil bg üzerinde beyaz görünsün */
  filter: brightness(0) invert(1);
}

/* Zil — sağ */
.w-bell {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
}

.w-bell svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Orta alan: kart + promo, flex ile dikey ortada ── */
.w-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

/* ── Kart: Hoş Geldiniz + butonlar — kutusuz ── */
.w-card {
  margin: 0 12px;
  background: transparent;
  border-radius: 0;
  padding: 18px 14px 16px;
  box-shadow: none;
}

/* "Hoş Geldiniz" — ortalanmış, kalın, beyaz */
.w-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* İki sekme yan yana */
.w-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

/* Referans: her iki sekme de outlined — beyaz bg, teal border, teal yazı */
.w-tab {
  flex: 1;
  height: 44px;
  background: #fff;
  border: 1.5px solid #009688;
  color: #009688;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
}

/* Müşteri Ol — tam genişlik, koyu çerçeve */
.w-musteri {
  display: block;
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1.5px solid #444;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0;
}

/* ── Promo banner ── */
.w-promo {
  margin: 12px 12px 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Profil fotoğrafı placeholder — iki üst üste daire */
.w-promo-avatars {
  position: relative;
  width: 44px;
  height: 36px;
  flex-shrink: 0;
}

.w-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ccc;
  border: 2px solid #fff;
  position: absolute;
  top: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w-avatar:first-child {
  left: 0;
  z-index: 2;
  background: #b0b0b0;
}

.w-avatar:last-child {
  left: 14px;
  z-index: 1;
  background: #909090;
}

.w-avatar svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.w-promo-text {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.w-promo-text b {
  font-weight: 700;
}

/* ── Alt navigasyon ── */
/* Promo banner ile aynı yarı şeffaf blur efekti */
.w-nav {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

.w-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Teal daire */
.w-nav-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #009688;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w-nav-circle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  stroke: none;
}

.w-nav-label {
  color: #fff;
  font-size: 10px;
  text-align: center;
  line-height: 1.3;
}

/* ══════════════════════════════════════
   GÖRSEL 2 — GİRİŞ EKRANI
   Referans ölçüler:
   - Arka plan: #F2F2F2 (açık gri)
   - Geri ok sol üst, ~44px top
   - "Giriş" başlık: 26px, 700, sola hizalı
   - Input: beyaz, sadece alt çizgi, 48px
   - Giriş btn: teal #009688, 50px, inline
   - Parola Al btn: beyaz + teal border, 50px
   ══════════════════════════════════════ */

.login-screen {
  background: #f2f2f2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Eski header gizle */
.login-header,
.login-tabs,
.page-tabs {
  display: none !important;
}

/* Geri oku */
.l-back {
  padding: 44px 0 0 16px;
}

.l-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.l-back-btn svg {
  width: 22px;
  height: 22px;
  stroke: #333;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* "Giriş" başlık */
.l-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  padding: 12px 16px 0;
}

/* Form sarmalayıcı */
.l-body {
  padding: 20px 16px 40px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hata mesajı */
.l-error {
  color: #d32f2f;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 4px;
}

/* Input grubu — sadece alt çizgi */
.l-field {
  background: #fff;
  border: none;
  border-bottom: 1.5px solid #c8c8c8;
  margin-bottom: 0;
}

.l-field + .l-field {
  margin-top: 14px;
}

.l-field:focus-within {
  border-bottom-color: #009688;
}

.l-input-wrap {
  display: flex;
  align-items: center;
}

.l-input {
  flex: 1;
  height: 48px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #1a1a1a;
  padding: 0 12px 0 0;
  -webkit-appearance: none;
  appearance: none;
}

.l-input::placeholder {
  color: #9e9e9e;
  font-size: 15px;
}

.l-sifre-al {
  flex-shrink: 0;
  color: #009688;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

/* Buton grubu — inputların hemen altında */
.l-btns {
  margin-top: 20px;
}

/* Teal giriş butonu */
.l-btn-primary {
  display: block;
  width: 100%;
  height: 50px;
  background: #009688;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.l-btn-primary:active {
  background: #00796b;
}

/* İkincil buton */
.l-btn-secondary {
  display: block;
  width: 100%;
  height: 50px;
  background: #fff;
  color: #009688;
  border: 1.5px solid #009688;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  -webkit-appearance: none;
  appearance: none;
}

/* ══════════════════════════════════════
   FORM SAYFALAR (basvuru-tamamla, info)
   Giriş ekranı stiliyle tutarlı
   Buton: position fixed — her zaman görünür
   ══════════════════════════════════════ */

.form-screen {
  background: #f2f2f2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Üst bar: geri ok + sayfa adı */
.f-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 48px 16px 12px;
  background: #f2f2f2;
  flex-shrink: 0;
}

.f-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.f-back-btn svg {
  width: 22px;
  height: 22px;
  stroke: #333;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f-header-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Kaydırılabilir içerik */
.f-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 16px calc(80px + env(safe-area-inset-bottom, 0px));
}

.f-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.f-notice {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.f-error {
  background: #ffebee;
  color: #c62828;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* Form input — alt çizgi stil */
.f-field {
  background: #fff;
  border: none;
  border-bottom: 1.5px solid #c8c8c8;
  margin-bottom: 0;
}

.f-field + .f-field {
  margin-top: 14px;
}

.f-field:focus-within {
  border-bottom-color: #009688;
}

.f-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9e9e9e;
  padding: 10px 0 2px;
}

.f-input {
  display: block;
  width: 100%;
  height: 42px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #1a1a1a;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.f-input::placeholder {
  color: #9e9e9e;
}

.soft-error {
  font-size: 12px;
  color: #d32f2f;
  margin-top: 4px;
  display: none;
}

/* Fixed buton çubuğu — her zaman altta görünür */
.f-action {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  background: #f2f2f2;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e0e0e0;
}

.f-btn {
  display: block;
  width: 100%;
  height: 50px;
  background: #009688;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.f-btn:active {
  background: #00796b;
}

/* ══════════════════════════════════════
   BAŞARI SAYFASI
   ══════════════════════════════════════ */
.success-page {
  min-height: 100vh;
  min-height: 100svh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.success-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid #009688;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-circle svg {
  width: 36px;
  height: 36px;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.success-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   GEÇİŞ ANİMASYONLARI
   ══════════════════════════════════════ */
.app.is-transitioning .screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

@keyframes txEnterFwd {
  from { opacity: 0; transform: translateY(14px) scale(0.988); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes txExitFwd {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(1.01); }
}
@keyframes txEnterBk {
  from { opacity: 0; transform: translateY(-12px) scale(0.988); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes txExitBk {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(14px) scale(0.988); }
}

.tx-enter-forward { animation: txEnterFwd 0.42s cubic-bezier(0.22,1,0.36,1) forwards; }
.tx-exit-forward  { animation: txExitFwd  0.36s cubic-bezier(0.4,0,0.2,1) forwards; }
.tx-enter-back    { animation: txEnterBk  0.42s cubic-bezier(0.22,1,0.36,1) forwards; }
.tx-exit-back     { animation: txExitBk   0.36s cubic-bezier(0.4,0,0.2,1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .tx-enter-forward, .tx-exit-forward,
  .tx-enter-back,   .tx-exit-back { animation: none; }
}
