:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --navy: #0f172a;
  --navy-2: #111827;
  --card-dark: #1e293b;
  --text: #111827;
  --muted: #6b7280;
  --purple: #7c3aed;
  --border: #d1d5db;
  --border-dark: #475569;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Bazı Android WebView’lerde klavye + resize boşluğu beyaz kalır; html/body aynı lacivert */
html {
  background: var(--navy);
  height: 100%;
  height: 100dvh;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(24px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(24px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
}

/* Klavye açıkken ortalamayı bırak — beyaz boşluk / kartın kaybolması engellenir */
html.kb-open body,
body.kb-open {
  justify-content: flex-start;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: 16px;
}

@media (max-height: 640px) {
  body {
    justify-content: flex-start;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-bottom: 16px;
  }
}

.hidden { display: none !important; }

.screen {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.card {
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.card-light {
  background: #fff;
  color: var(--text);
}

.card-dark {
  background: var(--card-dark);
  color: #fff;
  text-align: center;
  padding-top: 28px;
}

.badge-free {
  text-align: center;
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.reg-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.brand-logo {
  width: auto;
  height: 56px;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-logo-big {
  width: auto;
  height: 72px;
  max-width: 260px;
  margin: 0 auto 12px;
}

.reg-titles h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.site-link {
  color: var(--purple);
  font-size: 15px;
  text-decoration: none;
  font-weight: 600;
}

.site-link:hover { text-decoration: underline; }

.promo {
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.45;
  font-size: 16px;
  font-weight: 600;
}

.promo-green {
  color: var(--green);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.country-select {
  width: 96px;
  flex-shrink: 0;
  padding: 0 6px;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.card-dark input[type="text"],
.card-dark input[type="tel"],
.card-dark input[type="password"],
.card-dark select {
  background: #0f172a;
  border-color: var(--border-dark);
  color: #fff;
}

.card-dark input::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus {
  border-color: var(--green);
}

/* Kayıt: şifre sol | mağaza 2x2 sağ — mobilde de aynı (2. görsel) */
.pass-apps {
  display: grid;
  grid-template-columns: 1fr minmax(108px, 120px);
  gap: 10px;
  align-items: stretch;
}

.pass-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pass-col input {
  height: 48px;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  min-height: 106px;
}

.apps-grid .app-btn {
  height: 100%;
  min-height: 48px;
}

.apps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.app-btn {
  border-radius: 10px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
}
a.app-btn:hover {
  filter: brightness(1.05);
}

.app-btn .app-ico {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 2px;
}

.app-btn.android { background: #3ddc84; color: #063; }
.app-btn.apple { background: #111; color: #fff; }
.app-btn.huawei { background: #cf0a2c; }
.app-btn.play {
  background: linear-gradient(135deg, #00c3ff, #ffce00 55%, #ff3a44);
  color: #111;
}

.hint {
  font-size: 12.5px;
  color: #374151;
  margin-top: 2px;
}

.btn-primary {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 4px;
}

.btn-primary:hover { background: var(--green-dark); }

.text-link {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  margin-top: 12px;
  padding: 4px;
}

.text-link.strong { font-size: 16px; }

.official {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: #111;
  font-weight: 600;
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.login-sub {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 18px;
}

.remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.35;
  cursor: pointer;
  margin: 4px 0 2px;
}

.remember input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.error {
  color: #ef4444;
  font-size: 13.5px;
  text-align: left;
}

.card-dark .error { text-align: center; }

.forgot-panel .form input[type="email"] {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  background: #0f172a;
  color: #fff;
  padding: 0 14px;
  font-size: 16px;
  margin-bottom: 10px;
}

.forgot-panel .form input[type="email"]:focus {
  outline: none;
  border-color: var(--green);
}

.forgot-ok {
  color: #86efac;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  margin: 4px 0 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(134, 239, 172, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
}

.forgot-panel .btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.download-box {
  background: #1e293b;
  border-radius: 16px;
  padding: 18px 16px;
  color: #e2e8f0;
  text-align: center;
}

.dl-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
}

.dl-sub {
  color: #94a3b8;
  font-size: 13px;
}

.dl-hint {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 420px) {
  /* pass-apps düzenini bozma — 2. görseldeki gibi kalsın */
  .reg-titles h1 { font-size: 22px; }
  .pass-apps {
    grid-template-columns: 1fr minmax(100px, 112px);
    gap: 8px;
  }
}
