/* Teklif portalı yönetim girişi (app/views/login.php). Temalardan bağımsız; fontlar fonts.css'ten. */
@import url('fonts.css');

/* Yerleşim: solda devre kartı marka paneli (portal modülleri çip etrafında), sağda giriş formu; telefonda panel üst bant olur. */
:root {
  --navy: #0E2340; --navy-2: #14507A; --blue: #1A9BD7; --green: #22A45D; --hi: #5EDB96;
  --panel: #0E2340; --panel-ink: #C9D6E6; --panel-dim: #7F96B3; --trace: #24507F; --pad: #12305A; --pad-line: #2F6497; --chip: #06142A; --led-off: #1B3A5E;
  --page: #F3F6FA; --surface: #FFFFFF; --fg: #1F2A3A; --muted: #5B6B80; --line: #D9E3EE; --field: #FFFFFF;
  --heading: #0E2340; --link: #14507A; --ring: rgba(26,155,215,.35);
  --btn: #0E2340; --btn-hover: #14507A; --btn-ink: #FFFFFF;
  --err-bg: #FDECEA; --err-tx: #8F2414; --err-bd: #F5C6BE; --info-bg: #E8F4FB; --info-tx: #14507A; --info-bd: #BFDDF0;
  --display: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --panel: #081A30; --trace: #1D4673; --pad: #0F2A4D; --pad-line: #2A5A8A;
    --page: #0B1B31; --surface: #102544; --fg: #E3EBF5; --muted: #9FB3CC; --line: #24406A; --field: #0B1D36;
    --heading: #FFFFFF; --link: #6CC6F2; --ring: rgba(108,198,242,.4);
    --btn: #1A9BD7; --btn-hover: #44B2E6; --btn-ink: #06182E;
    --err-bg: #3A1712; --err-tx: #F6B7AC; --err-bd: #6A2A20; --info-bg: #0F2E4B; --info-tx: #A9D9F3; --info-bd: #1F4E77;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--page); color: var(--fg); font: 16px/1.5 var(--body); }

.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

/* ---- Marka paneli ---- */
.brandside { position: relative; background: var(--panel); color: var(--panel-ink); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 40px; }
.brandside::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--navy-2), var(--blue), var(--green)); }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 2px; color: var(--hi); text-transform: uppercase; margin: 0; }
.brandside h2 { font: 800 clamp(30px, 3.4vw, 44px)/1.08 var(--display); color: #fff; margin: 10px 0; letter-spacing: .3px; text-wrap: balance; }
.brandside .lede { margin: 0; max-width: 34ch; }
.board { width: 100%; max-width: 560px; align-self: center; }
.board svg { display: block; width: 100%; height: auto; }
.ref { font: 500 11px/1.4 var(--mono); letter-spacing: 1px; color: var(--panel-dim); margin: 0; }

.trace { fill: none; stroke: var(--trace); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: draw 1.1s cubic-bezier(.6,.05,.3,1) both; }
.signal { fill: none; stroke: var(--hi); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; opacity: .9; animation: run 3.6s linear infinite; }
.pad rect { fill: var(--pad); stroke: var(--pad-line); stroke-width: 1.5; }
.pad text { fill: var(--panel-ink); font: 600 13px var(--mono); letter-spacing: 1.2px; }
.pad .code { fill: var(--hi); }
.via { fill: var(--panel); stroke: var(--pad-line); stroke-width: 2; }
.chip-body { fill: var(--chip); stroke: var(--pad-line); stroke-width: 2; }
.pin { fill: var(--pad-line); }
.chip-dot { fill: var(--led-off); }
.chip-name { fill: #fff; font: 800 24px var(--display); letter-spacing: 3px; }
.chip-sub { fill: var(--panel-dim); font: 500 10px var(--mono); letter-spacing: 1.5px; }
.led { fill: var(--led-off); }
.led-lbl { fill: var(--panel-dim); font: 500 9px var(--mono); }
.connecting .led:nth-of-type(1) { animation: led .9s 0s ease-out forwards; }
.connecting .led:nth-of-type(2) { animation: led .9s .25s ease-out forwards; }
.connecting .led:nth-of-type(3) { animation: led .9s .5s ease-out forwards; }
.connecting .signal { animation-duration: 1.1s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes run { to { stroke-dashoffset: 0; } }
@keyframes led { to { fill: var(--hi); } }

/* ---- Form ---- */
.formside { display: grid; place-items: center; padding: 40px 16px; }
.card { width: 100%; max-width: 380px; display: grid; gap: 22px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 800 15px/1 var(--display); letter-spacing: 2px; color: var(--heading); }
.mark .logo { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); font-size: 17px; letter-spacing: 0; overflow: hidden; }
.mark .logo.img { background: #fff; padding: 3px; border: 1px solid var(--line); }
.mark .logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.mark small { font-weight: 700; font-size: 11px; letter-spacing: 1px; color: #157A44; }
@media (prefers-color-scheme: dark) { .mark small { color: var(--hi); } }
h1 { font: 700 28px/1.15 var(--display); color: var(--heading); margin: 0; letter-spacing: .2px; }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 14px; }
.input { position: relative; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; height: 48px; padding: 0 14px; font: 16px var(--body); color: var(--fg);
  background: var(--field); border: 1.5px solid var(--line); border-radius: 9px; transition: border-color .15s, box-shadow .15s; }
input:hover { border-color: var(--muted); }
input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.input input { padding-right: 52px; }
.eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.eye:hover { color: var(--fg); background: var(--line); }
.eye:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.eye svg { width: 20px; height: 20px; }
.eye .off { display: none; } .eye[aria-pressed="true"] .on { display: none; } .eye[aria-pressed="true"] .off { display: block; }
.caps { display: none; align-items: center; gap: 6px; font-size: 13px; color: var(--err-tx); }
.caps.show { display: flex; }

.btn { height: 50px; border: 0; border-radius: 9px; background: var(--btn); color: var(--btn-ink); font: 600 16px var(--body); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(14,35,64,.7); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn[aria-busy="true"] { cursor: progress; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: none; animation: spin .7s linear infinite; }
.btn[aria-busy="true"] .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.flash { border: 1px solid; border-radius: 9px; padding: 11px 13px; font-size: 14px; display: flex; gap: 9px; align-items: flex-start; margin: 0; }
.flash svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.flash.err { background: var(--err-bg); color: var(--err-tx); border-color: var(--err-bd); }

input.otp { font: 600 22px/1 var(--mono); letter-spacing: 4px; text-align: center; }
.alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; }
.alt a, .linkbtn { color: var(--link); font: 600 14px var(--body); text-underline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-align: left; }
.linkbtn:focus-visible, .alt a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

.foot { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--link); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-underline-offset .2s, text-decoration-thickness .2s; }
.foot a { display: inline-flex; min-height: 24px; align-items: center; }
.foot a:hover { color: var(--heading); text-underline-offset: 5px; text-decoration-thickness: 2px; }

.card > * { animation: settle .5s cubic-bezier(.2,.7,.2,1) both; }
.card > *:nth-child(2) { animation-delay: .06s; } .card > *:nth-child(3) { animation-delay: .12s; } .card > *:nth-child(4) { animation-delay: .18s; }
@keyframes settle { from { transform: translateY(6px); opacity: .55; } to { transform: none; opacity: 1; } }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; } /* boş alan forma kalsın, koyu başlığa değil */
  .brandside { display: block; padding: 22px 16px 26px; }
  .brandside h2 { font-size: 24px; margin: 6px 0 4px; }
  .brandside .lede { font-size: 14px; }
  .board, .ref { display: none; }
  .formside { place-items: start center; padding: 28px 16px 48px; }
  .mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .connecting .led { fill: var(--hi); }
}
