:root {
  --auth-navy: #16243a;
  --auth-navy-soft: #2e4666;
  --auth-gold: #a66d16;
  --auth-gold-light: #fff3d7;
  --auth-bg: #f4f0e8;
  --auth-surface: #fffdfa;
  --auth-border: #ddd7cd;
  --auth-muted: #647084;
  --auth-danger: #9d2f2f;
  --auth-radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
button, input { font: inherit; }

html { min-height: 100%; }

body.zen-auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-navy);
  background:
    radial-gradient(circle at 5% 8%, rgba(203, 157, 81, .15), transparent 26rem),
    radial-gradient(circle at 95% 92%, rgba(85, 126, 173, .13), transparent 30rem),
    var(--auth-bg);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.auth-topbar {
  position: relative;
  z-index: 2;
  min-height: 78px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(22, 36, 58, .1);
  box-shadow: 0 8px 28px rgba(24, 39, 58, .06);
  backdrop-filter: blur(12px);
}

.auth-topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-logo { display: inline-flex; align-items: center; }
.auth-logo img { width: 132px; height: auto; display: block; }

.auth-top-actions { display: flex; align-items: center; gap: 10px; }
.auth-top-hint { color: var(--auth-muted); font-size: .9rem; font-weight: 600; }

.auth-link-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: .62rem 1rem;
  color: var(--auth-navy);
  background: #fff;
  border: 1px solid #cbd2db;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.auth-link-button.primary {
  color: #fff;
  background: var(--auth-navy);
  border-color: var(--auth-navy);
}

.auth-link-button:hover {
  color: var(--auth-navy);
  border-color: var(--auth-gold);
  box-shadow: 0 6px 16px rgba(22, 36, 58, .11);
  transform: translateY(-1px);
}
.auth-link-button.primary:hover { color: #fff; background: #0f1c2e; }

.auth-main {
  width: min(1120px, calc(100% - 32px));
  min-height: min(780px, calc(100vh - 82px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0;
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  overflow: hidden;
  background: var(--auth-surface);
  border: 1px solid rgba(22, 36, 58, .1);
  border-radius: var(--auth-radius);
  box-shadow: 0 24px 70px rgba(32, 45, 62, .13);
}

.auth-form-panel { padding: clamp(28px, 5vw, 58px); }

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--auth-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-kicker-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: var(--auth-gold-light);
  border-radius: 9px;
}

.auth-title {
  margin: 0;
  color: #0f1d32;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
}

.auth-subtitle {
  max-width: 560px;
  margin: 14px 0 28px;
  color: var(--auth-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 14px;
  line-height: 1.45;
}
.auth-alert i { margin-top: 2px; font-size: 1.1rem; }
.auth-alert.success { color: #1b603e; background: #ebf8f0; border-color: #b9e1ca; }
.auth-alert.error { color: #842b2b; background: #fff0ef; border-color: #edc3c0; }
.auth-alert.gift { color: #704910; background: #fff7e6; border-color: #ebd29e; }

.auth-field { margin-bottom: 20px; }
.auth-label { display: block; margin-bottom: 8px; color: var(--auth-navy); font-weight: 750; }
.auth-label-note { color: var(--auth-muted); font-size: .83rem; font-weight: 500; }

.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  color: #778396;
  font-size: 1.05rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.zen-auth-page .auth-input {
  width: 100%;
  min-height: 54px;
  padding: 13px 48px 13px 48px;
  color: #17263a;
  background: #fff;
  border: 1px solid #cbd2db;
  border-radius: 13px;
  font-size: 1rem;
  line-height: 1.35;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.zen-auth-page .auth-input::placeholder { color: #8b94a2; }
.zen-auth-page .auth-input:hover { border-color: #9ca8b6; }
.zen-auth-page .auth-input:focus {
  outline: 0;
  border-color: #456b9b;
  box-shadow: 0 0 0 4px rgba(69, 107, 155, .15);
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #526075;
  background: transparent;
  border: 0;
  border-radius: 10px;
  transform: translateY(-50%);
}
.auth-password-toggle:hover { color: var(--auth-navy); background: #edf1f5; }

.auth-help { margin-top: 7px; color: var(--auth-muted); font-size: .88rem; }

.auth-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px; }
.auth-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--auth-navy); }
.auth-check label { color: #4f5c6d; line-height: 1.55; }

.auth-form-panel a { color: #255d9a; text-underline-offset: 3px; }

.auth-submit {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: .78rem 1.2rem;
  color: #fff;
  background: var(--auth-navy);
  border: 1px solid var(--auth-navy);
  border-radius: 13px;
  box-shadow: 0 9px 22px rgba(22, 36, 58, .18);
  font-size: 1.02rem;
  font-weight: 800;
}
.auth-submit:hover { background: #0d1a2b; }
.auth-form-panel a.auth-submit { color: #fff; text-decoration: none; }

.auth-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.auth-secondary-action {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: .7rem 1rem;
  color: var(--auth-navy) !important;
  background: #fff;
  border: 1px solid #cbd2db;
  border-radius: 13px;
  font-weight: 750;
  text-decoration: none;
}
.auth-secondary-action:hover { border-color: #8795a6; background: #f8fafc; }

.auth-legal { margin: 24px 0 0; color: var(--auth-muted); font-size: .87rem; line-height: 1.55; }

.auth-aside {
  position: relative;
  padding: clamp(30px, 4vw, 52px);
  color: #fff;
  background:
    linear-gradient(150deg, rgba(20, 36, 58, .98), rgba(43, 65, 92, .96)),
    #182a42;
}
.auth-aside::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, .025), 0 0 0 78px rgba(255, 255, 255, .018);
}
.auth-aside-content { position: relative; z-index: 1; }
.auth-aside-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: #5d3b09;
  background: #f7d99d;
  border-radius: 17px;
  font-size: 1.55rem;
}
.auth-aside h2 { margin: 0 0 12px; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; }
.auth-aside-lead { margin: 0 0 27px; color: #cdd7e4; line-height: 1.6; }
.auth-benefits { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.auth-benefit { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.auth-benefit-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #f4d18a; background: rgba(255, 255, 255, .08); border-radius: 11px; }
.auth-benefit strong { display: block; margin: 1px 0 3px; color: #fff; }
.auth-benefit span { color: #c8d2df; font-size: .91rem; line-height: 1.45; }

.auth-trust { display: flex; align-items: center; gap: 8px; margin-top: 30px; padding-top: 22px; color: #cbd5e1; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .87rem; }

.auth-back-home { display: none; }

.zen-auth-page :focus-visible { outline: 3px solid rgba(48, 105, 168, .3); outline-offset: 3px; }

@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-aside { border-top: 1px solid rgba(255, 255, 255, .12); }
  .auth-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .auth-topbar { min-height: 68px; }
  .auth-topbar-inner { width: min(100% - 24px, 1180px); }
  .auth-logo img { width: 108px; }
  .auth-top-hint { display: none; }
  .auth-link-button { min-height: 42px; padding: .55rem .82rem; font-size: .91rem; }
  .auth-main { width: min(100% - 20px, 1120px); min-height: auto; padding: 18px 0 28px; }
  .auth-card { border-radius: 19px; }
  .auth-form-panel { padding: 26px 20px 28px; }
  .auth-title { font-size: 2.1rem; }
  .auth-subtitle { margin-bottom: 22px; font-size: .96rem; }
  .auth-aside { padding: 28px 20px 30px; }
  .auth-aside h2 { font-size: 1.5rem; }
  .auth-benefits { grid-template-columns: 1fr; gap: 15px; }
  .auth-trust { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
