/* ŞantiyePRO · Mimari Blueprint Login Stilleri (Tam Ekrana Sığdırılmış Kompakt Tasarım) */

:root {
  --ink: #0e1a26;
  --ink-2: #16293c;
  --draft: #7fa7c9;          /* çizim çizgisi mavisi */
  --orange: #ff6a13;         /* marka turuncusu */
  --orange-hi: #ff7f33;
  --paper: #f3f4f2;
  --card: #ffffff;
  --text: #162230;
  --muted: #566574;
  --border: #c3ccd3;
  --err: #b3261e;
  --err-bg: #fdecea;
  --err-line: #f2b8b5;
  --ok: #1e7a4c;
  --ok-bg: #e6f4ec;
  --ok-line: #a8d5bb;
  --radius: 8px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  overflow: hidden;
}

/* ---------- Marka ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--orange);
  color: #1b0e03;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand__name b { color: var(--orange); font-weight: 800; }
.brand--light .brand__name { color: #fff; }
.brand--dark .brand__name { color: var(--ink); }
.brand--compact { display: none; margin-bottom: 20px; }

/* ---------- Sol Panel (Mimari Çizim & Vinç) ---------- */
.site {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vh, 36px) clamp(24px, 4vw, 48px);
  color: #fff;
  background:
    radial-gradient(120% 80% at 70% 100%, rgba(255,106,19,0.10), transparent 60%),
    linear-gradient(rgba(127,167,201,0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(127,167,201,0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ink);
  overflow: hidden;
  height: 100vh;
  max-height: 100vh;
}
.site__art {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 190px);
  width: 100%;
  margin: 4px 0 12px;
}
.site__copy { max-width: 440px; }
.site__copy h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.site__copy p { margin: 0; color: #a9bccd; max-width: 38ch; font-size: 13.5px; }

/* SVG çizim */
.draw {
  fill: none;
  stroke: var(--draft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.7s cubic-bezier(.3,.7,.3,1) forwards;
  animation-delay: var(--d, 0s);
}
.draw--slab  { stroke-width: 2.6; }
.draw--thin  { stroke-width: 1; opacity: .7; }
.draw--hot   { stroke: var(--orange); }
.draw--ground{ stroke: #b9cfe2; stroke-width: 2; }
.draw--crane { stroke: #a9c3da; stroke-width: 1.3; animation-duration: 1.2s; }
.mark {
  fill: var(--draft);
  font-family: var(--font-body);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: fade 0.5s ease forwards;
  animation-delay: var(--d, 0s);
}
.mark--hot { fill: var(--orange); font-weight: 600; }
.load {
  animation: lift 7s ease-in-out 5.2s infinite alternate;
}
.load__block { fill: var(--orange); }
.load__cable { stroke: #a9c3da; stroke-width: 1; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes lift { from { transform: translateY(0); } to { transform: translateY(34px); } }

/* ---------- Sağ Panel (Giriş Formu) ---------- */
.panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2.5vh, 28px) clamp(20px, 3vw, 36px);
  background: var(--paper);
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
}
.panel__inner {
  width: 100%;
  max-width: 360px;
  margin: auto;
  padding: 10px 0;
}
.panel h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.lead { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }

.field { margin-bottom: 12px; }
.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
}
.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover { border-color: #9eaab4; }
.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255,106,19,0.35);
}
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__wrap { position: relative; }
.field__wrap input { padding-right: 68px; }
.field__toggle {
  position: absolute; top: 50%; right: 6px;
  transform: translateY(-50%);
  height: 30px; padding: 0 8px;
  font: inherit; font-size: 12px; font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0; border-radius: 6px;
  cursor: pointer;
}
.field__toggle:hover { color: var(--ink); background: #eef0ee; }
.field__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field__err { margin: 4px 0 0; font-size: 12px; color: var(--err); }
.field__hint { margin: 4px 0 0; font-size: 12px; color: #8a4b00; }

.row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 16px;
  font-size: 13px;
}
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--orange); cursor: pointer; }
.link {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.link:hover { color: #000; }
.link:focus-visible, .check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

/* Buton */
.btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 44px;
  font: inherit; font-weight: 600; font-size: 15px;
  color: #1b0e03;
  background: var(--orange);
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, transform .08s;
}
.btn:hover { background: var(--orange-hi); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { cursor: progress; background: #f0a06d; }
.btn.is-ok { background: var(--ok); color: #fff; }
.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(27,14,3,.3);
  border-top-color: #1b0e03;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Uyarı */
.alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: var(--radius);
  border: 1px solid var(--err-line);
  background: var(--err-bg);
  color: #7a1510;
}
.alert--ok { border-color: var(--ok-line); background: var(--ok-bg); color: #14532f; }
.shake { animation: shake .4s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.help { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.panel__foot { text-align: center; font-size: 12px; color: #7b8894; padding-top: 8px; }

/* ---------- Duyarlı (Mobil) ---------- */
@media (max-width: 960px) {
  html, body { overflow-y: auto; }
  .shell { grid-template-columns: 1fr; height: auto; min-height: 100vh; overflow-y: auto; }
  .site { display: none; }
  .brand--compact { display: inline-flex; }
  .panel { padding: 32px 24px 20px; height: auto; min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  .draw { animation: none; stroke-dashoffset: 0; }
  .mark { animation: none; opacity: 1; }
  .load { animation: none; }
  .shake { animation: none; }
  .btn__spinner { animation-duration: 1.6s; }
}
