/* TNR Viral — auth pages (orange + gray, dark) */
:root {
  --ln-bg: #0a0a0a;
  --ln-bg-elev: #171717;
  --ln-surface: #1f1f1f;
  --ln-grid: rgba(255, 255, 255, 0.045);
  --ln-text: #fafafa;
  --ln-muted: #a3a3a3;
  --ln-subtle: #737373;
  --ln-orange: #ff6a00;
  --ln-orange-hot: #ff4500;
  --ln-orange-deep: #ff3300;
  --ln-border: rgba(255, 255, 255, 0.12);
  --ln-border-warm: rgba(255, 140, 80, 0.35);
  --ln-glow: rgba(255, 106, 0, 0.5);
  --ln-glow-soft: rgba(255, 255, 255, 0.08);
}

html, body {
  height: 100%;
}

body.auth-page {
  margin: 0;
  color: var(--ln-text);
  font-family: "Kanit", "Sarabun", system-ui, sans-serif;
  background-color: var(--ln-bg);
  background-image:
    linear-gradient(var(--ln-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ln-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

.auth-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 2.25rem 1.25rem;
}

.auth-card {
  width: min(520px, 100%);
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
  border: 1px solid var(--ln-border);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  padding: 1.75rem 1.6rem 1.5rem;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ln-orange);
}

.auth-brand p {
  margin: 0.25rem 0 0;
  color: var(--ln-muted);
  font-size: 1rem;
}

.auth-label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  color: #e5e5e5;
  font-weight: 500;
  font-size: 0.98rem;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 10, 10, 0.35);
  color: var(--ln-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  outline: none;
  font-size: 1rem;
}

.auth-input:focus {
  border-color: var(--ln-border-warm);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ff9500 0%, var(--ln-orange) 40%, var(--ln-orange-deep) 100%);
  box-shadow:
    0 10px 32px var(--ln-glow),
    0 0 0 1px var(--ln-border-warm);
  margin-top: 1.2rem;
}

.auth-btn:hover {
  filter: brightness(1.06);
}

.auth-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ln-subtle);
  margin: 1.25rem 0 0.9rem;
  font-weight: 500;
}

.auth-sep::before,
.auth-sep::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  flex: 1 1 auto;
}

.auth-google {
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.auth-foot {
  text-align: center;
  color: var(--ln-muted);
  margin-top: 0.85rem;
  font-size: 0.98rem;
}

.auth-foot a {
  color: #e5e5e5;
  text-decoration: none;
  font-weight: 600;
}

.auth-foot a:hover {
  color: var(--ln-orange);
}

.auth-alert {
  border: 1px solid rgba(255, 80, 80, 0.25);
  background: rgba(255, 80, 80, 0.08);
  color: #ffd3d3;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

