/* RentPro KABİS Asistanı — uzaktan giriş. Beto Yazılım kurumsal renkleri: lacivert (logo) + turuncu vurgu. */
:root {
  --navy: #2e2f4c;
  --navy-2: #23243b;
  --navy-3: #3b3d63;
  --orange: #ed7d31;
  --orange-dark: #d0661c;
  --bg: #f3f4f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --field: #d1d5db;
  --ok: #16a34a;
  --err: #dc2626;
  --warn-bg: #fff7ed;
  --warn-line: #fed7aa;
  --warn-text: #9a3412;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 12px 32px rgba(46, 47, 76, .10);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Üst bar: beyaz zemin üzerinde logo (logo lacivert, şeffaf) */
.top {
  background: #fff;
  border-top: 4px solid var(--orange);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.top-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.beto-logo { height: 46px; width: auto; display: block; }

.product { display: flex; align-items: center; gap: 9px; text-align: left; }
.product img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.product-name { font-weight: 700; font-size: 14px; color: var(--navy); line-height: 1.15; }
.product-sub { font-size: 12px; color: var(--muted); line-height: 1.2; }

/* Lacivert başlık bandı; kartlar üstüne biner */
.hero {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(237, 125, 49, .22) 0%, rgba(237, 125, 49, 0) 45%),
    linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: #fff;
  padding: 22px 0 64px;
}

.hero-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fbc59f;
  font-weight: 600;
}

.hero-title { font-size: 23px; font-weight: 800; margin-top: 4px; letter-spacing: -.01em; }

.timer {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}

.timer::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
}

.timer.low { background: rgba(220, 38, 38, .85); border-color: transparent; }
.timer.low::before { background: #fff; box-shadow: none; }

main {
  width: 100%;
  max-width: 520px;
  margin: -48px auto 0;
  padding: 0 16px 24px;
  flex: 1;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 47, 76, .06);
  margin-bottom: 14px;
}

.card.center { text-align: center; padding: 34px 22px; }

h1 { font-size: 20px; margin: 0 0 6px; color: var(--navy); letter-spacing: -.01em; }

p { line-height: 1.55; margin: 8px 0; }

.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.strong { font-weight: 600; color: var(--navy); }

/* Talep bilgileri */
.card-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.card-head svg { width: 18px; height: 18px; color: var(--orange); }

.info { padding: 16px 20px; }
.info dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.info dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.info dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; word-break: break-word; color: var(--text); }

/* Adımlar */
.steps {
  list-style: none; padding: 0; margin: 4px 0 16px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  text-align: center;
  font-size: 12px; color: var(--muted);
  padding-top: 36px;
}

.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: var(--muted);
  border: 2px solid var(--field);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  z-index: 1;
}

.steps li + li::after {   /* adımlar arası çizgi */
  content: "";
  position: absolute; top: 14px; right: 50%; width: 100%; height: 2px;
  background: var(--field);
}

.steps li.active { color: var(--navy); font-weight: 700; }
.steps li.active::before { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 4px rgba(237, 125, 49, .2); }
.steps li.done { color: var(--text); }
.steps li.done::before { content: "✓"; background: var(--navy); border-color: var(--navy); color: #fff; }
.steps li.done + li::after, .steps li.active::after { background: var(--navy); }
.steps li.active::after { background: var(--orange); }

/* Uyarı */
.notice {
  background: var(--warn-bg); color: var(--warn-text);
  border: 1px solid var(--warn-line);
  border-left: 4px solid var(--orange);
  border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; line-height: 1.45;
}

.notice.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; border-left-color: var(--err); }

/* Form */
label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin: 16px 0 6px; }

.field { position: relative; }

.field > svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: #9ca3af; pointer-events: none;
}

.field input { padding-left: 42px; }

input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(46, 47, 76, .15); }
.field:focus-within > svg { color: var(--navy); }

input.code {
  font-size: 28px; font-weight: 700; letter-spacing: .4em; text-align: center;
  font-variant-numeric: tabular-nums; color: var(--navy);
  padding: 14px 10px 14px calc(10px + .4em);
  background: #fafafc;
}

input.code::placeholder { color: #d1d5db; letter-spacing: .4em; }

.password input { padding-right: 84px; }
.password .ghost { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

button { font: inherit; cursor: pointer; }

.primary {
  width: 100%; margin-top: 22px;
  background: var(--orange); color: #fff; border: 0; border-radius: 10px;
  padding: 14px; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(237, 125, 49, .3);
  transition: background .15s, transform .05s;
}

.primary:hover { background: var(--orange-dark); }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .6; cursor: default; box-shadow: none; }
.primary:focus-visible { outline: 3px solid rgba(46, 47, 76, .35); outline-offset: 2px; }

.ghost {
  background: transparent; border: 0; color: var(--navy); font-weight: 600; font-size: 13px;
  padding: 8px 10px; border-radius: 8px;
}

.ghost:hover { background: #f3f4f6; }

.secure {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 18px; padding: 12px 14px;
  background: #f5f6fa; border-radius: 10px;
  font-size: 12.5px; line-height: 1.5; color: #4b5563;
}

.secure svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 1px; }

.link {
  display: block; margin: 4px auto 0; background: none; border: 0;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; padding: 8px;
}

.link:hover { color: var(--err); }

/* Durum görünümleri */
.spinner {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border: 4px solid #eceef4; border-top-color: var(--orange); border-radius: 50%;
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; color: #fff;
}

.badge svg { width: 34px; height: 34px; stroke-width: 2.6; }
.badge.ok { background: var(--ok); box-shadow: 0 0 0 8px rgba(22, 163, 74, .12); }
.badge.err { background: var(--err); box-shadow: 0 0 0 8px rgba(220, 38, 38, .12); }
.badge.off { background: #6b7280; box-shadow: 0 0 0 8px rgba(107, 114, 128, .14); }
.badge.off svg { width: 32px; height: 32px; stroke-width: 2; }

.waiting-dot { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.waiting-dot span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange); opacity: .3;
  animation: blink 1.4s infinite ease-in-out;
}
.waiting-dot span:nth-child(2) { animation-delay: .2s; }
.waiting-dot span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* Alt bilgi */
.foot {
  text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.foot-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--navy); }
.foot-brand img { width: 20px; height: 20px; display: block; }
.foot-meta a { color: var(--muted); text-decoration: none; }
.foot-meta a:hover { color: var(--orange); }
.foot-warn { margin-top: 2px; font-size: 11.5px; color: #9ca3af; }

@media (max-width: 340px) {
  .beto-logo { height: 38px; }
  .product-sub { display: none; }
  .hero-title { font-size: 20px; }
  .info dl { grid-template-columns: 1fr; }
}

@media (min-width: 700px) {
  .hero { padding: 34px 0 72px; }
  .hero-title { font-size: 27px; }
  .card { padding: 26px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
  * { transition: none !important; }
}
