/* ============================================================
   UBeLong — Auth & Onboarding Styles
   Signup, login, verify, payment-success, members gate
   Shares the design system with the homepage.
   ============================================================ */

/* ---- Auth layout (centered single-column forms) ---- */
.auth {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 7vw, 80px);
  background: var(--cream);
}
.auth__inner {
  max-width: 540px;
  margin-inline: auto;
  width: 100%;
}
.auth__card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--sh-lg);
}
.auth__head { text-align: center; margin-bottom: 1.8em; }
.auth__head .eyebrow { margin-bottom: .5em; }
.auth__head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .3em; }
.auth__head p { color: var(--text-soft); margin: 0; font-size: .98rem; }

/* ---- Form fields ---- */
.field { margin-bottom: 1.25em; }
.field label {
  display: block; font-weight: 700; font-size: .88rem; color: var(--teal-900);
  margin-bottom: .4em; letter-spacing: .01em;
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: .8em 1em; border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--cream); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100);
}
.field input::placeholder { color: var(--text-muted); opacity: .7; }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: .8rem; color: var(--text-muted); margin-top: .35em; }
.field .error { font-size: .82rem; color: var(--danger); margin-top: .35em; display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }

/* ---- Password strength ---- */
.pw-strength { margin-top: .5em; }
.pw-strength__bar {
  height: 6px; border-radius: var(--r-full); background: var(--cream-deep); overflow: hidden;
}
.pw-strength__fill { height: 100%; width: 0; border-radius: var(--r-full); transition: width .3s, background .3s; }
.pw-strength__label { font-size: .78rem; color: var(--text-muted); margin-top: .3em; }

/* ---- Age gate ---- */
.age-gate {
  background: var(--teal-900); color: #fff; border-radius: var(--r-lg);
  padding: 20px 22px; margin-bottom: 1.6em; text-align: center;
}
.age-gate h3 { color: #fff; font-size: 1.2rem; margin-bottom: .3em; }
.age-gate p { color: var(--text-on-deep-muted); font-size: .9rem; margin: 0 0 1em; }
.age-gate__check {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  background: rgba(255,255,255,.08); border-radius: var(--r-md); padding: 14px 16px;
  cursor: pointer; transition: background .2s;
}
.age-gate__check:hover { background: rgba(255,255,255,.13); }
.age-gate__check input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber-400); }
.age-gate__check span { font-size: .92rem; color: #eaf3f1; line-height: 1.5; }
.age-gate__check b { color: #fff; }

/* ---- Checkbox rows (terms, preferences) ---- */
.check-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
  cursor: pointer; font-size: .92rem; color: var(--text-soft);
}
.check-row input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal-600); }
.check-row b { color: var(--teal-900); }
.check-row a { color: var(--teal-700); }

/* ---- Auth footer links ---- */
.auth__foot { text-align: center; margin-top: 1.6em; font-size: .92rem; color: var(--text-soft); }
.auth__foot a { font-weight: 700; }

/* ---- Alert / message box ---- */
.alert {
  border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 1.4em;
  font-size: .92rem; display: flex; gap: 10px; align-items: flex-start;
}
.alert svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.alert--info { background: var(--teal-100); color: var(--teal-800); border: 1px solid var(--teal-300); }
.alert--success { background: #e6f4ea; color: #1d5e36; border: 1px solid #aedcc0; }
.alert--warn { background: var(--amber-100); color: var(--amber-600); border: 1px solid var(--amber-300); }
.alert--error { background: #fcecea; color: #8a2820; border: 1px solid #e3b3ad; }
.alert b { font-weight: 800; }

/* ---- Plan picker (on signup) ---- */
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.4em; }
.plan-card {
  border: 2px solid var(--border); border-radius: var(--r-lg); padding: 18px 16px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
  background: var(--cream);
}
.plan-card:hover { border-color: var(--teal-300); }
.plan-card.selected { border-color: var(--accent); background: var(--amber-100); box-shadow: var(--sh-sm); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card__label { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-700); }
.plan-card.selected .plan-card__label { color: var(--amber-600); }
.plan-card__price { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--teal-900); line-height: 1; margin: 6px 0 2px; }
.plan-card__price small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan-card__sub { font-size: .82rem; color: var(--text-muted); }
.plan-card__best {
  display: inline-block; background: var(--accent); color: #2a1700; font-size: .66rem; font-weight: 800;
  letter-spacing: .08em; padding: .2em .6em; border-radius: var(--r-full); margin-bottom: 6px;
}
@media (max-width: 420px) { .plan-pick { grid-template-columns: 1fr; } }

/* ---- Multi-step progress ---- */
.steps { display: flex; gap: 4px; margin-bottom: 2em; }
.steps__dot {
  flex: 1; height: 5px; border-radius: var(--r-full); background: var(--cream-deep);
  transition: background .3s;
}
.steps__dot.active { background: var(--accent); }
.steps__dot.done { background: var(--teal-500); }

/* ---- Verification page ---- */
.verify-intro {
  background: var(--teal-100); border: 1px solid var(--teal-300); border-radius: var(--r-lg);
  padding: 22px 24px; margin-bottom: 1.8em;
}
.verify-intro h3 { margin-bottom: .4em; font-size: 1.2rem; }
.verify-intro ul { margin: .6em 0 0; padding-left: 1.1em; color: var(--text-soft); font-size: .92rem; }
.verify-intro li { margin-bottom: .4em; }
.verify-intro b { color: var(--teal-900); }

.video-upload {
  border: 2.5px dashed var(--teal-300); border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px) 24px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--cream);
}
.video-upload:hover { border-color: var(--accent); background: var(--amber-100); }
.video-upload svg { width: 48px; height: 48px; color: var(--teal-500); margin-bottom: .5em; }
.video-upload h4 { margin-bottom: .3em; font-size: 1.1rem; }
.video-upload p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.video-upload input[type="file"] { display: none; }

.video-preview {
  margin-top: 1.2em; border-radius: var(--r-lg); overflow: hidden;
  border: 1.5px solid var(--border); background: #000; max-width: 360px;
}
.video-preview video { width: 100%; display: block; }

.privacy-modes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 1.4em; }
.privacy-card {
  border: 2px solid var(--border); border-radius: var(--r-lg); padding: 18px 14px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.privacy-card:hover { border-color: var(--teal-300); }
.privacy-card.selected { border-color: var(--accent); background: var(--amber-100); }
.privacy-card input { position: absolute; opacity: 0; pointer-events: none; }
.privacy-card__icon { font-size: 1.8rem; margin-bottom: .3em; }
.privacy-card h4 { font-size: 1rem; margin-bottom: .2em; }
.privacy-card p { font-size: .8rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
@media (max-width: 600px) { .privacy-modes { grid-template-columns: 1fr; } }

/* ---- Payment success page ---- */
.pay-success { text-align: center; }
.pay-success__icon {
  width: 80px; height: 80px; margin: 0 auto .5em; border-radius: 50%;
  background: var(--success); display: grid; place-items: center; box-shadow: var(--sh-md);
}
.pay-success__icon svg { width: 44px; height: 44px; color: #fff; }
.pay-success h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pay-success__next {
  background: var(--teal-100); border-radius: var(--r-lg); padding: 24px;
  margin-top: 1.6em; text-align: left;
}
.pay-success__next h3 { font-size: 1.15rem; margin-bottom: .5em; }
.pay-success__next ol { margin: 0; padding-left: 1.3em; color: var(--text-soft); }
.pay-success__next li { margin-bottom: .6em; }
.pay-success__next b { color: var(--teal-900); }

/* ---- Members gate (blocked screen) ---- */
.gate-block {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(40px, 7vw, 80px) var(--gut);
}
.gate-block__inner { max-width: 480px; text-align: center; }
.gate-block__icon {
  width: 76px; height: 76px; margin: 0 auto .6em; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--sh-md);
}
.gate-block__icon svg { width: 40px; height: 40px; }
.gate-block__icon--lock { background: var(--amber-100); }
.gate-block__icon--lock svg { color: var(--amber-600); }
.gate-block__icon--pending { background: var(--teal-100); }
.gate-block__icon--pending svg { color: var(--teal-600); }
.gate-block h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .3em; }
.gate-block p { color: var(--text-soft); margin-bottom: 1.4em; }
.gate-block .btn { margin: .3em; }

/* ---- Members dashboard shell ---- */
.dash {
  padding-block: clamp(32px, 5vw, 56px);
  min-height: calc(100vh - 72px);
}
.dash__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px);
}
.dash__welcome h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0; }
.dash__welcome p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.dash__status { display: flex; gap: 8px; flex-wrap: wrap; }

.dash__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 24px); }
@media (max-width: 880px) { .dash__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dash__grid { grid-template-columns: 1fr; } }

.dash__tile {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-sm); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s; display: block;
}
.dash__tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); text-decoration: none; }
.dash__tile__icon { font-size: 1.6rem; margin-bottom: .4em; }
.dash__tile h3 { font-size: 1.15rem; margin-bottom: .2em; }
.dash__tile p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ---- Demo / placeholder banner ---- */
.demo-banner {
  background: var(--amber-100); border: 1px solid var(--amber-300); border-radius: var(--r-md);
  padding: 12px 16px; margin-bottom: 1.4em; font-size: .85rem; color: var(--amber-600);
  display: flex; gap: 8px; align-items: center;
}
.demo-banner svg { flex: 0 0 auto; width: 20px; height: 20px; }
.demo-banner b { color: #8a5a0e; }

/* ---- Spinner ---- */
.spinner {
  width: 20px; height: 20px; border: 2.5px solid var(--cream-deep);
  border-top-color: var(--teal-500); border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn .spinner { margin-right: .5em; }
.btn[disabled] { opacity: .7; pointer-events: none; }
