/* DEMO_ESINAV mobil — GSM giriş (referans ekran) */
:root {
  --navy: #0b245b;
  --navy2: #133a8a;
  --red: #e30613;
  --muted: #64748b;
  --bg: #f4f6fa;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.d-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #dbe7ff 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 55%, #e8eef8 100%);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--navy);
}

.d-flag {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 72px 72px 0 0;
  border-color: var(--red) transparent transparent transparent;
  z-index: 2;
}
.d-flag::after {
  content: "☪";
  position: absolute;
  top: -62px; left: 8px;
  color: #fff;
  font-size: 1.1rem;
  transform: rotate(-8deg);
}

.d-login {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 18px 40px;
  position: relative;
  z-index: 1;
}

.d-logo-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.d-logo-badge {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e8eef8;
  box-shadow: 0 8px 24px rgba(11,36,91,.12);
  display: grid; place-items: center;
  overflow: hidden;
}
.d-logo-badge img { width: 92%; height: 92%; object-fit: contain; }

.d-hero-car {
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
  min-height: 96px;
}
.d-hero-car img {
  width: min(94vw, 360px);
  height: auto;
  max-height: 130px;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  padding: 6px 10px;
  filter: drop-shadow(0 8px 16px rgba(15,23,42,.18));
}

.d-brand {
  text-align: center;
  margin: 8px 0 6px;
  line-height: 1.15;
}
.d-brand .l1 {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--navy);
}
.d-brand .l2 {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy2);
  margin-top: 2px;
}

.d-welcome {
  text-align: center;
  margin: 10px 0 18px;
}
.d-welcome strong {
  display: block;
  color: var(--navy2);
  font-size: 1.05rem;
}
.d-welcome span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .88rem;
}

.d-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .1);
  border: 1px solid #e8edf5;
}

.d-alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .86rem;
  margin-bottom: 12px;
}

.d-field { margin-bottom: 14px; }
.d-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.d-label .ico { color: var(--red); font-size: 1.1rem; }
.d-label .tr {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: .95rem;
}
.d-label .ar {
  display: block;
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
}

.d-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #d7dee8;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}
.d-input-wrap .lead { color: #94a3b8; font-size: 1.05rem; }
.d-input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 13px 4px;
  font-size: 1rem;
  background: transparent;
  color: #0f172a;
}

.d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a3f8f, var(--navy));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .04em;
  padding: 14px 16px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(11,36,91,.28);
}
.d-btn:active { transform: translateY(1px); }
.d-btn-block { margin-top: 8px; }

.d-secure {
  text-align: center;
  margin-top: 12px;
  color: #3b82f6;
  font-size: .82rem;
  font-weight: 600;
}

.d-city {
  height: 70px;
  margin-top: 18px;
  opacity: .35;
  background:
    linear-gradient(180deg, transparent, #c5d4ef),
    repeating-linear-gradient(90deg,
      transparent 0 18px,
      #9db4de 18px 22px,
      transparent 22px 40px,
      #8aa3d2 40px 48px,
      transparent 48px 70px);
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.d-lang {
  text-align: center;
  margin-top: 10px;
  font-size: .9rem;
  color: var(--navy);
}
.d-lang a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  margin: 0 4px;
}
.d-lang a.on { color: var(--red); font-weight: 800; }

/* Home */
.d-home {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}
.d-home-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.d-home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.d-home-brand img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.d-home-brand strong { display: block; font-size: .95rem; }
.d-home-brand span { display: block; font-size: .75rem; color: var(--muted); }
.d-home-actions { display: flex; gap: 8px; align-items: center; }
.d-lang-mini, .d-logout {
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
}
.d-lang-mini { background: #e8eef8; color: var(--navy); }
.d-logout { background: #fee2e2; color: #991b1b; }

.d-exam-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  border: 1px solid #e8edf5;
  margin-bottom: 16px;
}
.d-timer-label { font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.d-timer {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--navy);
  margin-bottom: 14px;
}
.d-hint { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }

.d-history {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #e8edf5;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
}
.d-history h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--navy);
}
.d-empty { color: var(--muted); font-size: .88rem; margin: 8px 0; }
.d-hist-list { list-style: none; margin: 0; padding: 0; }
.d-hist-list li {
  padding: 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .86rem;
}
.d-hist-list li:last-child { border-bottom: 0; }
.d-hist-link {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}
.d-hist-list strong { display: block; color: #0f172a; }
.d-hist-list span { color: var(--muted); font-size: .78rem; }
.d-hist-list .score {
  font-weight: 900;
  color: var(--navy);
  font-size: 1.05rem;
}
.d-hist-list .go {
  color: #2563eb;
  font-weight: 700;
  font-size: .8rem;
}

[dir="rtl"] .d-flag { left: auto; right: 0; transform: scaleX(-1); }
