/* ============================================================
   Auth pages — Login & Sign Up
   ============================================================ */

body.auth {
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ============= LEFT PANEL (decorative) ============= */
.auth-aside {
  background: var(--ink);
  color: #fff;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.auth-aside::before {
  width: 520px; height: 520px;
  background: rgba(245,176,39,.22);
  top: -180px; right: -180px;
}
.auth-aside::after {
  width: 420px; height: 420px;
  background: rgba(245,176,39,.1);
  bottom: -120px; left: -120px;
}

.auth-aside-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-aside .brand {
  color: #fff;
  font-size: 20px;
}
.auth-back-link {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease;
}
.auth-back-link:hover { color: #fff; }

.auth-aside-mid {
  position: relative;
  z-index: 2;
  margin: 60px 0;
}
.auth-aside h1 {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 14ch;
}
.auth-aside h1 .serif-italic {
  color: var(--honey);
  display: inline;
}
.auth-aside .lede {
  color: rgba(255,255,255,.65);
  margin-top: 20px;
  max-width: 38ch;
  font-size: 17px;
}

/* Offer cards floating */
.auth-cards-stack {
  position: relative;
  margin-top: 40px;
  height: 220px;
}
.auth-float-card {
  position: absolute;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: auth-float 6s ease-in-out infinite;
}
@keyframes auth-float {
  0%, 100% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, 0deg)); }
  50% { transform: translate(var(--tx, 0), calc(var(--ty, 0px) - 8px)) rotate(var(--r, 0deg)); }
}
.auth-float-1 { top: 0; left: -10px; --r: -3deg; animation-delay: 0s; }
.auth-float-2 { top: 70px; left: 70px; --r: 2deg; animation-delay: 1.5s; }
.auth-float-3 { top: 140px; left: 30px; --r: -1deg; animation-delay: 3s; }

.auth-float-card .logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.afc-merchant { font-size: 11.5px; color: rgba(255,255,255,.6); font-weight: 600; }
.afc-deal { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.afc-chip {
  background: var(--honey-soft);
  color: #8C5A00;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.auth-aside-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255,255,255,.75);
}
.auth-feat svg { color: var(--honey); flex-shrink: 0; }

/* ============= RIGHT PANEL (form) ============= */
.auth-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 48px 56px;
  min-height: 100vh;
  position: relative;
}

.auth-mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.auth-form-wrap {
  width: 100%;
  max-width: 446px;
  margin: 0 auto;
}

.auth-mark {
  width: 56px;
  height: 56px;
  background: var(--honey);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.auth-title {
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0;
}
.auth-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 10px;
}

.auth-form { margin-top: 36px; }
.field { margin-bottom: 22px; }
.field-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 8px;
}
.field-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px 0 50px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-input:focus-within {
  border-color: var(--honey);
  box-shadow: 0 0 0 4px rgba(245,176,39,.15);
}
.field-input .ic {
  position: absolute;
  left: 18px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.field-input input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 500;
}
.field-input input::placeholder { color: rgba(14,22,58,.32); }
.field-input .toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  margin-right: -6px;
}

.field-help {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 8px;
}
.field-help a {
  color: var(--ink);
  font-weight: 600;
  opacity: .7;
  transition: opacity .2s ease;
}
.field-help a:hover { opacity: 1; }

/* Pill group (gender etc) */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(14,22,58,.05);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pill:hover { background: rgba(14,22,58,.09); }
.pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Submit button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, transform .15s ease;
  letter-spacing: -0.005em;
}
.btn-submit:hover { background: #060d2a; }
.btn-submit:active { transform: scale(.99); }
.btn-submit.btn-honey {
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 8px 22px -8px rgba(245,176,39,.5);
}
.btn-submit.btn-honey:hover { background: var(--honey-2); }

/* OR divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin: 22px 0;
}
.or-divider::before, .or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Social buttons */
.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-social {
  height: 52px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.btn-social:hover { background: var(--bg-alt); border-color: var(--ink); }

/* Footer link inside form */
.auth-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}
.auth-foot a {
  color: var(--ink);
  font-weight: 700;
  margin-left: 6px;
}
.auth-foot a:hover { text-decoration: underline; }

/* Privacy line */
.auth-privacy {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 16px;
  background: rgba(245,176,39,.12);
  border-radius: 12px;
  border: 1px solid rgba(245,176,39,.25);
}
.auth-privacy svg { color: var(--honey); flex-shrink: 0; }

/* Sign-up specific: tighter spacing */
.auth-main.signup .field { margin-bottom: 18px; }
.auth-main.signup .auth-form { margin-top: 28px; }

/* ============= Responsive ============= */
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-nav { display: flex; }
  .auth-main { padding: 24px 24px 48px; min-height: auto; }
}
@media (max-width: 480px) {
  .auth-main { padding: 16px 16px 36px; }
  .auth-title { font-size: 32px; }
}
