﻿:root {
  --brand-primary: #008c9e;
  --brand-primary-dark: #006d8a;
  --brand-accent: #00b8c6;
  --page-bg: #020617;
  --panel-bg: #111827;
  --field-bg: #1f2937;
  --line: #334155;
  --text: #f8fafc;
  --muted: #64748b;
  --font: Manrope, Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: var(--text);
  font-family: var(--font);
}

.auth-preview {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #020617;
}

.auth-shell {
  width: min(1024px, 100%);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  background: var(--panel-bg);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.stripe { height: 4px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), color-mix(in srgb, var(--brand-accent), white 55%)); }
.shell-grid { display: grid; grid-template-columns: .46fr .54fr; min-height: 590px; }
.brand-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-right: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark) 45%, color-mix(in srgb, var(--brand-primary-dark), black 72%));
}
.brand-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.brand-content, .brand-points, .brand-footer { position: relative; }
.brand-content { text-align: center; }
.brand-logo { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 32px; display: block; }
.brand-title { max-width: 300px; margin: 0 auto; font-size: 22px; line-height: 1.45; font-weight: 800; }
.brand-line { width: 48px; height: 4px; margin: 20px auto; border-radius: 99px; background: color-mix(in srgb, var(--brand-accent), white 50%); }
.brand-copy { max-width: 360px; margin: 0 auto; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.7; }
.brand-points { display: grid; gap: 12px; }
.brand-point { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.72); font-size: 14px; }
.brand-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.1); color: color-mix(in srgb, var(--brand-accent), white 65%); flex-shrink: 0; }
.brand-footer { border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; color: rgba(255,255,255,.42); font-size: 12px; line-height: 1.7; }

.form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #111827;
}
.form-card { width: min(420px, 100%); }
.form-title { margin: 0; text-align: center; font-size: 16px; font-weight: 700; color: #fff; }
.form-subtitle { margin: 6px 0 24px; text-align: center; font-size: 12px; color: var(--muted); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 6px; font-size: 12px; color: #94a3b8; }
.input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--field-bg); color: #e2e8f0; padding: 0 12px; font: inherit; outline: none; }
.input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary), transparent 82%); }
.button { width: 100%; height: 42px; border: 0; border-radius: 9px; background: var(--brand-primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--brand-primary-dark); }
.button.secondary { border: 1px solid color-mix(in srgb, var(--brand-accent), transparent 60%); background: transparent; color: color-mix(in srgb, var(--brand-accent), white 50%); }
.button.secondary:hover { background: color-mix(in srgb, var(--brand-accent), transparent 92%); }
.link-row { display: flex; justify-content: space-between; margin: 8px 0 16px; font-size: 12px; color: var(--muted); }
.link { color: color-mix(in srgb, var(--brand-accent), white 55%); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.method-switch { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(148,163,184,.18); }
.method-title { margin: 0 0 12px; text-align: center; color: #475569; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.method-row { display: flex; gap: 8px; }
.method-chip { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--field-bg); color: #cbd5e1; padding: 7px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; text-decoration: none; text-align: center; display: block; transition: border-color .15s, background .15s; }
.method-chip:hover { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary), transparent 92%); color: color-mix(in srgb, var(--brand-accent), white 50%); }
.notice { border: 1px solid color-mix(in srgb, var(--brand-accent), transparent 78%); border-radius: 12px; background: color-mix(in srgb, var(--brand-accent), transparent 90%); padding: 14px; color: #cbd5e1; font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.qr { width: 160px; height: 160px; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--field-bg); display: grid; place-items: center; color: #cbd5e1; font-size: 64px; }

@media (max-width: 860px) {
  .auth-preview { padding: 16px; }
  .shell-grid { grid-template-columns: 1fr; }
  .brand-pane { display: none; }
  .form-pane { min-height: 590px; }
}
