/* ============================================================
   CN NEWSWIRE — Auth pages (login / register)
   Light editorial theme matching the main site
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 80px;
  background:
    radial-gradient(60% 45% at 80% 0%, oklch(0.56 0.19 26 / 0.08), transparent 65%),
    radial-gradient(50% 40% at 10% 100%, rgba(31, 41, 55, 0.04), transparent 60%),
    var(--paper);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--white-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 40px 36px;
  box-shadow: var(--shadow-2);
}
.auth-card h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 4vw, 30px);
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 700;
}
.auth-card .sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 700;
}
.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus {
  border-color: var(--red);
  background: var(--white-soft);
  box-shadow: 0 0 0 3px oklch(0.56 0.19 26 / 0.12);
}
.field input::placeholder { color: #9ca3af; }
.field .err {
  color: var(--red-deep);
  font-size: 12px;
  margin-top: 5px;
  min-height: 0;
}
.form-error {
  background: oklch(0.56 0.19 26 / 0.08);
  border: 1px solid oklch(0.56 0.19 26 / 0.25);
  color: var(--red-deep);
  font-size: 13px;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: none;
}
.form-error.show { display: block; }

.btn-primary {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  margin-top: 6px;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--red-deep); box-shadow: 0 10px 26px oklch(0.56 0.19 26 / 0.35); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 24px 0 18px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider.hidden { display: none; }

.btn-google {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-google:hover { background: var(--paper-2); border-color: var(--ink-soft); }
.btn-google svg { width: 18px; height: 18px; }
.btn-google:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-google[hidden] { display: none !important; }

.auth-alt {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 24px;
}
.auth-alt a { color: var(--red-deep); text-decoration: none; font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

.auth-forgot {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 18px;
}
.auth-forgot a {
  font-size: 13px;
  color: var(--red-deep);
  font-weight: 600;
  text-decoration: none;
}
.auth-forgot a:hover { text-decoration: underline; }

.pw-toggle {
  position: relative;
}
.pw-toggle .toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}
.pw-toggle .toggle-eye:hover { color: var(--ink); }

/* Mobile */
@media (max-width: 480px) {
  .auth-wrap { padding: 28px 14px 60px; }
  .auth-card { padding: 28px 20px 26px; border-radius: 14px; }
  .field input { height: 50px; font-size: 16px; } /* prevent iOS zoom */
}
/* ============================================================
   EMPHASIS PASS - auth
   ============================================================ */
/* Card group: brand-red top accent line, bold deep-ink title */
.auth-card {
  border-top: 3px solid var(--red);
  box-shadow: 0 18px 44px oklch(0.23 0.035 260 / 0.10);
}
.auth-card h1 { color: var(--ink); font-weight: 800; }

/* ============================================================
   SPLIT LAYOUT (item 9: login/register rebuild - left brand / right form)
   ============================================================ */
.auth-split {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border-radius: 0;
}
/* --- Left column: brand promo area (deep ink gradient) --- */
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  color: #fff;
  background:
    radial-gradient(95% 70% at 88% 108%, oklch(0.30 0.06 258 / 0.42), transparent 62%),
    linear-gradient(168deg, #0b1f3a 0%, #091830 52%, #061224 100%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.20;
  pointer-events: none;
}
.auth-brand__inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
}
.auth-brand__kicker {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(0.85 0.08 78);
  border: 1px solid oklch(0.85 0.08 78 / 0.45);
  border-radius: 999px;
  padding: 7px 16px;
  background: oklch(0.85 0.08 78 / 0.08);
}
.auth-brand h1,
.auth-brand h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.14;
  font-weight: 800;
  color: #fff;
  margin: 22px 0 16px;
}
.auth-brand__sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 26px;
}
.auth-brand__points {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.auth-brand__points li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.auth-brand__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: oklch(0.85 0.08 78);
  color: oklch(0.2 0.05 255);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* --- Right column: form area --- */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 64px;
  background: #fff;
}
.auth-panel .auth-card {
  max-width: 420px;
  width: 100%;
  border: 0;
  border-radius: 0;
  border-top: 0;
  box-shadow: none;
  background: #fff;
  padding: 10px 0;
}
.auth-panel .btn-primary {
  border-radius: 999px;
  height: 50px;
}
.auth-panel .btn-google {
  border-radius: 999px;
  height: 50px;
  border: 1.5px solid var(--line);
}
/* --- Mobile: hide left column --- */
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-brand { display: none; }
  .auth-panel { padding: 36px 18px 56px; }
  .auth-panel .auth-card { max-width: 440px; }
}


/* ============================================================
   PRO POLISH PASS (professional design polish)
    Keep left-brand/right-form split; strengthen type hierarchy / whitespace / control finish / brand feel
   ============================================================ */

/* --- Card top badge --- */
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-deep);
  background: oklch(0.56 0.19 26 / 0.07);
  border: 1px solid oklch(0.56 0.19 26 / 0.18);
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 18px;
}
.auth-eyebrow svg { width: 13px; height: 13px; }

/* --- Right column heading hierarchy --- */
.auth-panel .auth-card h1 { font-size: clamp(26px, 4vw, 32px); letter-spacing: -0.01em; }
.auth-panel .auth-card .sub { font-size: 14.5px; line-height: 1.6; margin-bottom: 30px; }

/* --- Inputs: taller, softer radius, focus glow --- */
.auth-panel .field input {
  height: 50px;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-panel .field input:hover { border-color: oklch(0.58 0.02 250); }
.auth-panel .field input:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px oklch(0.56 0.19 26 / 0.10), 0 8px 22px rgba(20, 30, 60, 0.05);
}
.auth-panel .field:focus-within label { color: var(--red-deep); }
.auth-panel .field label { font-size: 11.5px; letter-spacing: 0.09em; }

/* --- Captcha row --- */
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.btn-code {
  flex: 0 0 auto;
  width: auto;
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), oklch(0.50 0.19 25));
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px oklch(0.56 0.19 26 / 0.22);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-code:hover { transform: translateY(-1px); box-shadow: 0 10px 22px oklch(0.56 0.19 26 / 0.3); }
.btn-code:active { transform: translateY(0); }
.btn-code:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.hint { display: none; margin-top: 8px; font-size: 13px; font-weight: 600; color: #059669; }

/* --- Primary button: brand red gradient + hover glow --- */
.auth-panel .btn-primary {
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red) 0%, oklch(0.48 0.19 25) 100%);
  box-shadow: 0 12px 26px oklch(0.56 0.19 26 / 0.28);
  letter-spacing: 0.02em;
}
.auth-panel .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px oklch(0.56 0.19 26 / 0.36);
}
.auth-panel .btn-primary:active { transform: translateY(0); box-shadow: 0 8px 18px oklch(0.56 0.19 26 / .24); }

/* --- Google button: refined border and hover --- */
.auth-panel .btn-google {
  height: 52px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 30, 60, 0.05);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.auth-panel .btn-google:hover {
  border-color: oklch(0.58 0.02 250);
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.09);
  transform: translateY(-1px);
}
.auth-panel .btn-google:active { transform: translateY(0); }

/* --- Divider spacing --- */
.auth-panel .divider { margin: 24px 0 22px; }

/* --- Bottom trust bar --- */
.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}
.auth-trust svg { width: 13px; height: 13px; flex: none; color: var(--gold); }

/* --- Left column: gold glow + media wall glass + stats + trust --- */
.auth-brand::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.85 0.08 78 / 0.09), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.auth-brand__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}
.auth-brand__stats div { text-align: center; }
.auth-brand__stats strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.auth-brand__stats span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.auth-brand__trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}
.auth-brand__trust svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  color: oklch(0.85 0.08 78);
}

/* --- Mobile extras --- */
@media (max-width: 480px) {
  .auth-brand__stats { gap: 4px; padding: 16px 8px; }
  .auth-brand__stats strong { font-size: 19px; }
  .auth-brand__stats span { font-size: 9px; letter-spacing: 0.06em; }
  .code-row { flex-direction: column; gap: 10px; }
  .btn-code { width: 100%; }
  .auth-trust { flex-wrap: wrap; text-align: center; line-height: 1.6; }
}



