/* ═══════════════════════════════════════════════════════════════════════
   IADEOS · giris.html
   Retina rules applied here (see LOGIN_AUDIT.md §2):
   · fovea holds only static, high-contrast content: the form. All motion
     lives in the void (periphery), and calms while a field has focus.
   · heading sits at a fixed y across every step → no re-targeting saccade.
   · state by shape, never by hue alone: filled = done, 2px = conflict,
     dashed = not yet / unverified.
   · 0 ms press feedback; no layout shift on error (messages reserve rows).
   ═══════════════════════════════════════════════════════════════════════ */

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-weight: 500; }
.btn--block { width: 100%; }
.is-auth .btn:active, .is-auth .seg2:active, .is-auth .tlink:active { transition: none; transform: translateY(1.5px) scale(.985); }
.is-auth .btn[disabled] { opacity: .55; cursor: default; transform: none; }

html[data-variant] body.is-auth { background: var(--white); }

/* ── shell ──────────────────────────────────────────────────────────── */
.auth {
  --void-bg: var(--ink); --void-line: #1A2740; --void-lit: #2D63C8; --void-label: #5E6B82;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, 560px);
  min-height: 100vh; min-height: 100svh;
}
html[data-variant="light"] .auth { --void-bg: var(--surface); --void-line: #DCE2EB; --void-lit: #8DB1F5; --void-label: #8A93A3; }

/* ── void (periphery) ───────────────────────────────────────────────── */
.void { position: relative; overflow: hidden; isolation: isolate; background: var(--void-bg); min-height: 320px; }
.void__layers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.void__asset { position: absolute; inset: 0; z-index: 1; }
.void__asset canvas { display: block; width: 100% !important; height: 100% !important; }
.void__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-variant="void"] .void__grain { opacity: .04; }
.void__tele { position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); z-index: 3; display: flex; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: .08em; color: var(--void-label); font-variant-numeric: tabular-nums; }
.void__tick { width: 28px; height: 1px; background: currentColor; opacity: .6; }

/* layered plates & micro-settlements (built by iadeos-login.js) */
.lay__plate { fill: none; stroke: var(--void-line); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke 600ms var(--ease), opacity 600ms var(--ease); }
.lay__parcel { fill: none; stroke: var(--void-line); stroke-width: .75; vector-effect: non-scaling-stroke; transition: stroke 600ms var(--ease); }
.lay__built { fill: var(--void-line); opacity: .7; transition: fill 600ms var(--ease); }
.lay__label { font: 400 10px/1 var(--mono); letter-spacing: .1em; fill: var(--void-label); text-transform: uppercase; }
.lay__lead { stroke: var(--void-label); stroke-width: .75; vector-effect: non-scaling-stroke; opacity: .6; }
.lay__g.is-lit .lay__plate { stroke: var(--void-lit); }
.lay__g.is-lit .lay__parcel { stroke: var(--void-lit); }
.lay__g.is-lit .lay__built { fill: var(--void-lit); }
.lay__g.is-next .lay__plate { stroke: var(--void-lit); stroke-dasharray: 4 4; }
.lay__g.is-lit .lay__label { fill: var(--ink-text-2); }
html[data-variant="light"] .lay__g.is-lit .lay__label { fill: var(--gray-600); }
.lay__field { fill: var(--void-line); opacity: .55; }
.auth[data-stage="locked"] .lay__plate { stroke-dasharray: 2 5; }

/* ── panel (fovea) ──────────────────────────────────────────────────── */
.panel { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; background: var(--white); border-left: 1px solid var(--line); }
.panel__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 4vw, 48px); }
.panel__logo { display: inline-flex; align-items: center; min-height: 44px; }
.panel__body { width: 100%; max-width: 440px; margin-inline: auto; padding: clamp(28px, 8vh, 96px) clamp(20px, 4vw, 48px) 32px; }
.panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px clamp(20px, 4vw, 48px) 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--gray-600); }
.panel__foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.panel__foot a:hover { text-decoration-color: var(--ink); }
.panel__legal { display: flex; gap: 10px; }

.lstep { display: grid; gap: 0; }
.lstep[hidden] { display: none !important; }
.lstep__h { font: 300 clamp(32px, 3vw, 42px)/1.1 var(--sans); letter-spacing: -.02em; outline: 0; }
.lstep__p { margin-top: 12px; color: var(--gray-600); font-size: 16px; line-height: 1.55; max-width: 65ch; }
.lstep__p b { color: var(--ink); font-weight: 500; font-size: 15px; word-break: break-all; }
.lstep__form { display: grid; gap: 16px; margin-top: 28px; }
.field label { color: var(--ink); }
.input { scroll-margin: 120px; }
.input[aria-invalid="true"] { border: 2px solid var(--ink); padding-inline: 13px; }

/* error by shape: a 2px square, ink text (no red) */
.ferr { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink); line-height: 1.45; }
.ferr__mark { flex: none; width: 10px; height: 10px; border: 2px solid var(--ink); transform: translateY(1px); }
.field .hint { min-height: 2.9em; }
.field .ferr:not([hidden]) { min-height: 2.9em; }
.ferr--slot[hidden] { display: flex !important; visibility: hidden; }
.ferr--slot { min-height: 2.9em; }
.fsoft { font-size: 13px; color: var(--gray-600); padding-left: 10px; border-left: 1px dashed var(--gray-600); }

.or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 24px 0 16px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }
.alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alt .btn { gap: 10px; padding-inline: 12px; }
.alt .btn svg { width: 18px; height: 18px; }
.alt .btn:hover svg { transform: none; }

.links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; font: 500 14px/1.2 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; cursor: pointer; }
.tlink:hover { text-decoration-color: var(--ink); color: var(--ink); }
.tlink[disabled] { color: var(--gray-600); text-decoration: none; cursor: default; }
.tlink[disabled]:active { transform: none; }

.meter { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 24px 0 0; border: 1px solid var(--line); border-radius: var(--r-card); }
.meter--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.meter > div { padding: 12px 14px; min-width: 0; }
.meter > div + div { border-left: 1px solid var(--line); }
.meter dt { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); }
.meter dd { margin: 6px 0 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.meter dd.mono { font-size: 17px; }

/* ── one-time code: one real input, six painted cells ───────────────── */
.otp { position: relative; display: grid; grid-template-columns: repeat(3, 1fr) 12px repeat(3, 1fr); gap: 8px; }
.otp input {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0 0 0 18px;
  border: 0; background: transparent; color: transparent; caret-color: transparent; outline: 0;
  font: 16px/1 var(--mono); letter-spacing: 2.4em; -webkit-text-fill-color: transparent; cursor: text;
}
.otp input::selection { background: transparent; }
.otp__cell { display: grid; place-items: center; height: 56px; border: 1px solid #C9D0DB; border-radius: var(--r-ctl); background: var(--white); font: 500 24px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.otp__gap { align-self: center; justify-self: center; width: 8px; height: 1px; background: #C9D0DB; }
.otp__cell.is-filled { border-color: var(--ink); }
.otp:focus-within .otp__cell.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.otp:focus-within .otp__cell.is-active:empty::after { content: ""; width: 1.5px; height: 24px; background: var(--ink); animation: caret 1s steps(1) infinite; }
.otp[data-state="error"] .otp__cell { border: 2px solid var(--ink); }
.otp[data-state="ok"] .otp__cell { background: var(--ink); color: var(--white); border-color: var(--ink); }
@keyframes caret { 50% { opacity: 0; } }

/* attempts by shape: filled = left, dashed = spent */
.tries { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gray-600); }
.tries__dots { display: inline-flex; gap: 5px; }
.tries__dots i { width: 10px; height: 10px; border-radius: 2px; background: var(--ink); }
.tries__dots i.is-spent { background: transparent; border: 1px dashed var(--gray-600); }
.tries b { color: var(--ink); }

.lockclock { margin: 28px 0 8px; font-size: clamp(48px, 6vw, 72px); font-weight: 400; letter-spacing: -.02em; color: var(--ink); line-height: 1; }

.notice { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--gray-600); border-radius: var(--r-ctl); font-size: 14px; line-height: 1.55; color: var(--ink); background: var(--surface); }
.proto-note { margin-top: 20px; font: 400 12px/1.5 var(--mono); color: var(--gray-600); }

/* busy: label swap, width locked by JS so nothing moves */
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 1.5px; background: currentColor; animation: busy 900ms var(--ease) infinite; transform-origin: left; }
@keyframes busy { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ── prototype disclosure ───────────────────────────────────────────── */
.proto { position: relative; font-size: 13px; }
.proto summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px dashed var(--gray-600); border-radius: var(--r-ctl); list-style: none; cursor: pointer; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); }
.proto summary::-webkit-details-marker { display: none; }
.proto__dot { width: 8px; height: 8px; border: 1px dashed var(--gray-600); border-radius: 50%; }
.proto[open] summary { color: var(--ink); border-color: var(--ink); }
.proto__body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(340px, calc(100vw - 32px)); display: grid; gap: 12px; padding: 16px; background: var(--white); border: 1px solid var(--ink); border-radius: var(--r-card); }
.proto__body p { color: var(--gray-600); font-size: 13px; line-height: 1.5; }
.proto__row { display: flex; align-items: center; gap: 6px; }
.proto__k { flex: 0 0 72px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); }
.seg2 { position: relative; flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
/* seg2 is a real 44 px box (audit 2026-10-14) */
.seg2:hover { border-color: var(--ink); }
.seg2[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ── measurement HUD ────────────────────────────────────────────────── */
.olcum { position: fixed; left: 16px; top: 16px; z-index: 50; width: 268px; padding: 14px 16px; background: rgba(11, 18, 32, .94); color: #E6EBF3; border: 1px solid var(--ink-line); border-radius: var(--r-card); font: 400 12px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.olcum[hidden] { display: none; }
.olcum__h { display: flex; justify-content: space-between; margin-bottom: 8px; color: #FFFFFF; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.olcum__h span { color: var(--ink-text-2); font-weight: 400; text-transform: none; letter-spacing: 0; }
.olcum dl { margin: 0; display: grid; gap: 4px; }
.olcum dl div { display: flex; justify-content: space-between; gap: 12px; }
.olcum dt { color: var(--ink-text-2); }
.olcum dd { margin: 0; color: #FFFFFF; }
.olcum__f { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ink-line); color: var(--ink-text-2); font-size: 11px; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(380px, 480px); }
}
@media (max-width: 820px) {
  .auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .void { height: 34vh; height: 34svh; min-height: 240px; max-height: 360px; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .panel__body { padding-top: 32px; }
  .void__tele, .lay__label, .lay__lead { display: none; }
  .olcum { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; }
}
@media (max-width: 380px) {
  .alt { grid-template-columns: 1fr; }
  .meter--3 { grid-template-columns: 1fr; }
  .meter--3 > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .otp { gap: 6px; grid-template-columns: repeat(3, 1fr) 8px repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .otp__cell.is-active:empty::after, .btn[aria-busy="true"]::after { animation: none; }
  .lay__plate, .lay__parcel, .lay__built { transition: none; }
}

/* telefon: okunurluk tabanı */
@media (max-width: 599px) { .void__tele, .lay__label, .meter dt, .proto__k, .olcum__h, .olcum__f { font-size: 12px !important; } input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; } }
