/* ─────────────────────────────────────────────────────────────────────────
   AFTERWORK — Giriş (login) sayfası. Referanstaki obsidyen köşegen gradyan +
   grain doku, ortada cam login paneli. Açılışta "ilham ver" belirir, kaybolur,
   yerine panel gelir. Video/split layout/sekmeler kaldırıldı.
   Önek: .lg-*
   ───────────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body.lg {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #f2f5f8;
  /* Obsidian Chrome köşegen: sol-üst açık çelik → sağ-alt derin siyah. */
  background-color: #090c0f;
  background-image:
    radial-gradient(78% 62% at 34% 24%, rgba(228, 234, 238, 0.55) 0%, rgba(150, 166, 178, 0.22) 34%, transparent 62%),
    linear-gradient(142deg, #b8c3c9 0%, #94a1a9 16%, #64717b 34%, #3a444d 52%, #1b2228 72%, #0b0f13 100%);
}

/* Pürüzlü film-grain (referanstaki doku) — gradyanın üstünde. */
body.lg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  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='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Logo — sol üst (login kutusundan çıkarıldı, ana sayfaya link). */
.lg-brand {
  position: fixed;
  top: clamp(1rem, 2.5vw, 1.6rem);
  left: clamp(1.1rem, 2.8vw, 2rem);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.lg-brand img {
  height: clamp(40px, 3.6vw, 54px);
  width: auto;
  /* Üst-sol gradyan AÇIK olduğu için beyaz logo kayboluyordu → koyu logo, net görünür */
  filter: brightness(0) saturate(100%);
  opacity: 1;
}
.lg-brand:hover { transform: translateY(-1px); opacity: 1; }

/* ── Sol hero: "Geleceğine yön ver." — kalıcı, kelimeler tek tek belirir ── */
.lg-hero {
  position: relative;
  z-index: 2;
  align-self: center;
  will-change: transform;
  touch-action: none; /* sürükleme için */
}
.lg-hero-line {
  margin: 0;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  white-space: nowrap;   /* "Geleceğine yön ver." tek satır, kelimeler yan yana */
}
/* Her kelime tek tek belirir (stagger) — GİRİŞ ANİMASYONU KORUNDU. */
.lg-hero-word {
  display: inline-block;
  margin: 0 0.16em 0 0;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(7px);
  animation: lgWordIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.lg-hero-word:nth-child(1) { animation-delay: 0.08s; }
.lg-hero-word:nth-child(2) { animation-delay: 0.34s; }
.lg-hero-word:nth-child(3) { animation-delay: 0.6s; }
/* Sürüklenirken imleç */
.lg-hero.is-draggable { cursor: grab; }
.lg-hero.is-dragging { cursor: grabbing; }
@keyframes lgWordIn {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ── Sahne: sol hero + sağ kart (iki kolon) ─────────────────────────── */
.lg-stage {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr minmax(360px, 430px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .lg-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 430px;
    justify-items: center;
  }
  .lg-hero-line { text-align: center; }
  .lg-hero.is-draggable { cursor: default; }
}

.lg-card {
  width: min(410px, 94vw);
  padding: clamp(1.8rem, 4vw, 2.4rem) clamp(1.5rem, 4vw, 2.1rem);
  border-radius: 24px;
  background: rgba(16, 20, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  backdrop-filter: blur(30px) saturate(1.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  /* Intro sırasında gizli; JS "card-in" ekleyince süzülerek gelir. */
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
body.card-in .lg-card { opacity: 1; transform: none; }

.lg-logo {
  display: block;
  width: 132px;
  margin: 0 auto 1.4rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.lg-title { margin: 0; text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.lg-sub { margin: 0.35rem 0 1.5rem; text-align: center; font-size: 0.9rem; color: rgba(226, 232, 238, 0.62); }

/* Görünüm anahtarı (login ↔ register) */
body[data-view="login"] .lg-view--register { display: none; }
body[data-view="register"] .lg-view--login { display: none; }

/* ── Form alanları ──────────────────────────────────────────────────── */
.lg-form { display: flex; flex-direction: column; gap: 0.85rem; }
.lg-field { display: flex; flex-direction: column; gap: 0.35rem; }
.lg-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(226, 232, 238, 0.7); padding-left: 0.15rem; }
.lg-input-wrap { position: relative; display: flex; }
.lg-field input,
.lg-input-wrap input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f5f8;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.lg-input-wrap input { padding-right: 2.9rem; }
.lg-field input::placeholder,
.lg-input-wrap input::placeholder { color: rgba(226, 232, 238, 0.38); }
.lg-field input:focus,
.lg-input-wrap input:focus { border-color: rgba(122, 162, 206, 0.85); background: rgba(255, 255, 255, 0.09); }

.lg-eye {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(226, 232, 238, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.16s ease, background 0.16s ease;
}
.lg-eye:hover { color: #f2f5f8; background: rgba(255, 255, 255, 0.08); }
.lg-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg-eye .lg-eye-off { display: none; }
.lg-eye.is-visible .lg-eye-on { display: none; }
.lg-eye.is-visible .lg-eye-off { display: block; }

.lg-row { display: flex; justify-content: flex-end; margin-top: -0.2rem; }

.lg-submit {
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 13px;
  background: #f4f7f9;
  color: #12161a;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.lg-submit:hover { background: #fff; transform: translateY(-1px); }

/* Bağlantı / metin butonları */
.lg-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #9dc0e6;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}
.lg-link:hover { color: #c3ddf4; text-decoration: underline; }

.lg-or { display: flex; align-items: center; gap: 0.7rem; margin: 1.2rem 0; color: rgba(226, 232, 238, 0.4); font-size: 0.78rem; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.14); }

.lg-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f5f8;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.lg-google:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.lg-google-ico { display: inline-flex; width: 20px; height: 20px; background: #fff; border-radius: 5px; padding: 2px; }
.lg-google-ico svg { width: 100%; height: 100%; }

.lg-switch { margin: 1.3rem 0 0; text-align: center; font-size: 0.85rem; color: rgba(226, 232, 238, 0.6); }

/* ── Geri bildirim ──────────────────────────────────────────────────── */
.lg-feedback { margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-radius: 12px; font-size: 0.85rem; line-height: 1.45; }
.lg-feedback p { margin: 0.15rem 0; }
.lg-feedback.is-error { background: rgba(210, 70, 70, 0.16); border: 1px solid rgba(210, 70, 70, 0.4); color: #ffd9d9; }
.lg-feedback.is-success { background: rgba(70, 180, 120, 0.16); border: 1px solid rgba(70, 180, 120, 0.4); color: #d5f7e4; }

/* ── Kayıt: rol seçimi ──────────────────────────────────────────────── */
.register-step[hidden] { display: none; }
.lg-roles { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.4rem; }
.lg-role {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f5f8;
  font: inherit;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.lg-role:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(122, 162, 206, 0.6); transform: translateY(-1px); }
.lg-role.is-selected { border-color: rgba(122, 162, 206, 0.9); background: rgba(79, 124, 181, 0.18); }
.lg-role strong { font-size: 1rem; font-weight: 700; }
.lg-role span { font-size: 0.82rem; color: rgba(226, 232, 238, 0.6); }

.lg-detail-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.lg-detail-head .lg-title { text-align: left; font-size: 1.3rem; }
.lg-back-inline {
  flex: none; width: 2.1rem; height: 2.1rem; border-radius: 10px; border: 0;
  background: rgba(255, 255, 255, 0.06); color: #f2f5f8; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.16s ease;
}
.lg-back-inline:hover { background: rgba(255, 255, 255, 0.12); }
.lg-back-inline svg { width: 18px; height: 18px; }
.register-form { margin-top: 0.2rem; }

/* ── Erişilebilirlik / hareket azaltma ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lg-card { transition: opacity 0.2s ease; transform: none; }
  .lg-intro-word { animation-duration: 0.6s; }
}

@media (max-width: 480px) {
  .lg-card { border-radius: 20px; }
}
