/* GDN Auth — login split mockup 100% */
:root {
  --blue: #0055ff;
  --blue-hover: #0044d6;
  --cyan: #00d1ff;
  --navy: #00152e;
  --navy-2: #021a3a;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f4f7fb;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] {
  --surface: #0b1220;
  --card: #111a2b;
  --ink: #e8eef8;
  --muted: #94a3b8;
  --line: #243247;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.auth-body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
[x-cloak] { display: none !important; }

.auth-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.55rem; letter-spacing: .04em;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-logo-mark.sm {
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--blue) 30%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-hero .auth-logo-mark {
  background: linear-gradient(135deg, #fff 35%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Split layout */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}
@media (max-width: 1024px) {
  .auth-split { grid-template-columns: 1fr; }
}

/* LEFT HERO */
.auth-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 100vh;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
@media (max-width: 1024px) {
  .auth-hero {
    clip-path: none;
    min-height: auto;
    padding-bottom: 1.5rem;
  }
}
.auth-hero-media { position: absolute; inset: 0; }
.auth-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.auth-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,21,46,.55) 0%, rgba(0,21,46,.72) 42%, rgba(0,21,46,.92) 100%),
    radial-gradient(circle at 55% 35%, rgba(0,209,255,.18), transparent 45%);
}
.auth-hero-inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 1.75rem 2.25rem 1.35rem;
  max-width: 720px;
}
.auth-brand {
  display: inline-flex; align-items: center; gap: .75rem;
  width: fit-content;
}
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.auth-brand-text strong { font-size: .95rem; font-weight: 700; }
.auth-brand-text small {
  font-size: .72rem; color: var(--cyan); font-weight: 500; margin-top: .15rem;
}

.auth-hero-copy { margin-top: auto; padding-top: 3rem; max-width: 34rem; }
.auth-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -.02em;
}
.auth-hero-copy h1 span { color: var(--cyan); }
.auth-hero-copy p {
  margin: .9rem 0 0;
  color: rgba(255,255,255,.84);
  font-size: .98rem; line-height: 1.55;
  max-width: 32rem;
}

.auth-chips {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-top: 1.5rem;
}
.auth-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,209,255,.35);
  background: rgba(2, 26, 58, .55);
  backdrop-filter: blur(8px);
  font-size: .78rem; font-weight: 600;
  box-shadow: 0 0 18px rgba(0,209,255,.12);
}
.auth-chip svg { width: 14px; height: 14px; color: var(--cyan); }

.auth-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 1.5rem;
}
@media (max-width: 1200px) {
  .auth-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .auth-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.auth-feature {
  display: flex; flex-direction: column; align-items: flex-start; gap: .45rem;
  padding: .75rem .7rem;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  font-size: .72rem; font-weight: 600; line-height: 1.3;
}
.auth-feature svg {
  width: 18px; height: 18px; color: var(--blue);
  filter: drop-shadow(0 0 8px rgba(0,85,255,.45));
}

.auth-pipeline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem;
  margin-top: 1.25rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.7);
}
.auth-pipeline span.is-active {
  color: #fff;
  border-bottom: 2px solid var(--blue);
  padding-bottom: .15rem;
}
.auth-pipeline i { font-style: normal; opacity: .35; }

/* RIGHT PANEL */
.auth-panel {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh;
  padding: 1.25rem 1.75rem 1rem;
  background: var(--surface);
}
.auth-panel-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(circle at 80% 10%, rgba(0,85,255,.08), transparent 40%),
    radial-gradient(circle at 20% 90%, rgba(0,209,255,.07), transparent 35%),
    url("../images/auth/form-bg.jpg") center/cover no-repeat;
}
[data-theme="dark"] .auth-panel-bg { opacity: .2; }

.auth-panel-top {
  position: relative; z-index: 1;
  display: flex; justify-content: flex-end; align-items: center; gap: .65rem;
}
.theme-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: .3rem .45rem .3rem .55rem;
  cursor: pointer; color: var(--ink);
}
.theme-toggle svg { width: 15px; height: 15px; }
.theme-switch {
  width: 34px; height: 18px; border-radius: 999px;
  background: #cbd5e1; position: relative;
  transition: background .2s;
}
.theme-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
.theme-switch.is-on { background: var(--blue); }
.theme-switch.is-on::after { transform: translateX(16px); }
.lang-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: .4rem .7rem;
  font-size: .8rem; font-weight: 700; color: var(--ink);
}
.lang-pill svg { width: 14px; height: 14px; }

.auth-panel-center {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.25rem 0;
}

.auth-card {
  width: min(100%, 420px);
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15,23,42,.04);
  padding: 1.75rem 1.6rem 1.45rem;
}
.auth-card-brand { margin-bottom: .35rem; }
.auth-card h2 {
  margin: .35rem 0 0;
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink);
}
.auth-card-lead {
  margin: .35rem 0 0;
  color: var(--muted); font-size: .92rem;
}

.auth-alert {
  margin-top: .9rem; border-radius: 10px; padding: .7rem .85rem;
  font-size: .85rem; font-weight: 600;
}
.auth-alert.ok { background: #ecfdf5; color: #047857; }
.auth-alert.err { background: #fef2f2; color: #b91c1c; }
[data-theme="dark"] .auth-alert.ok { background: rgba(16,185,129,.15); color: #6ee7b7; }
[data-theme="dark"] .auth-alert.err { background: rgba(239,68,68,.15); color: #fca5a5; }

.auth-form { margin-top: 1.25rem; display: grid; gap: .95rem; }
.auth-field { display: grid; gap: .4rem; }
.auth-field > span:first-child {
  font-size: .84rem; font-weight: 700; color: var(--ink);
}
.auth-input {
  display: flex; align-items: center; gap: .55rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 0 .85rem;
  transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,85,255,.12);
}
.auth-input > svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.auth-input input {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: .85rem 0; color: var(--ink);
}
.auth-input input::placeholder { color: #94a3b8; }
.pass-toggle {
  border: 0; background: transparent; color: var(--muted);
  display: inline-flex; padding: .25rem; cursor: pointer;
}
.pass-toggle svg { width: 17px; height: 17px; }
.auth-error { color: #dc2626; font-size: .78rem; font-weight: 600; }

.auth-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap;
}
.auth-check {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .84rem; color: var(--muted); font-weight: 500; cursor: pointer;
}
.auth-check input { width: 15px; height: 15px; accent-color: var(--blue); }
.auth-row > a {
  color: var(--blue); font-weight: 700; font-size: .84rem;
}
.auth-row > a:hover { text-decoration: underline; }

.auth-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff;
  padding: .95rem 1.2rem; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: background .2s, box-shadow .2s;
}
.auth-submit:hover {
  background: var(--blue-hover);
  box-shadow: 0 10px 28px rgba(0,85,255,.28);
}
.auth-submit svg { width: 18px; height: 18px; }

.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.15rem 0 .95rem;
  color: var(--muted); font-size: .8rem; font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.auth-secure {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .85rem .9rem;
  border-radius: 12px;
  background: rgba(0,85,255,.07);
  border: 1px solid rgba(0,85,255,.1);
}
.auth-secure svg { width: 20px; height: 20px; color: var(--blue); margin-top: .1rem; flex-shrink: 0; }
.auth-secure strong { display: block; font-size: .86rem; color: var(--ink); }
.auth-secure span { display: block; margin-top: .15rem; font-size: .78rem; color: var(--muted); }

.auth-support {
  margin-top: 1.1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--muted); font-size: .88rem; font-weight: 600;
}
.auth-support:hover { color: var(--blue); }
.auth-support svg { width: 18px; height: 18px; }

.auth-panel-foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: .65rem 1rem;
  justify-content: space-between; align-items: center;
  padding-top: .75rem;
  font-size: .75rem; color: var(--muted);
}
.auth-panel-foot p { margin: 0; }
.auth-panel-foot a { font-weight: 600; }
.auth-panel-foot a:hover { color: var(--blue); }
.auth-panel-foot div { display: flex; gap: .9rem; }

/* Simple auth pages (forgot/reset/register) */
.auth-simple-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1rem; gap: 1rem;
}
.auth-brand-mini {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; color: var(--ink);
}
.auth-brand-mini .auth-logo-mark {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
}
.auth-simple-wrap .auth-card { width: min(100%, 420px); }
.auth-simple-foot { margin: 0; font-size: .88rem; }
.auth-simple-foot a { color: var(--blue); font-weight: 700; }

/* Fallback form styles for forgot/reset/register content */
.auth-card .display { margin: 0 0 .75rem; font-size: 1.4rem; font-weight: 800; }
.auth-card .form label,
.auth-simple-wrap .form label {
  display: grid; gap: .35rem; margin-bottom: .85rem; font-weight: 700; font-size: .85rem;
}
.auth-card .form input,
.auth-simple-wrap .form input {
  border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .9rem;
  background: var(--card); color: var(--ink);
}
.auth-card .btn,
.auth-simple-wrap .btn,
.auth-card .btn-primary,
.auth-simple-wrap .btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff; padding: .9rem 1.2rem;
  font-weight: 700; cursor: pointer;
}

@media (max-width: 1024px) {
  .auth-hero-inner { padding: 1.25rem 1.25rem 1rem; max-width: none; }
  .auth-hero-copy { margin-top: 2rem; padding-top: 0; }
  .auth-panel { min-height: auto; padding-bottom: 1.5rem; }
  .auth-panel-center { padding: .5rem 0 1rem; }
}
