/* =========================================================
   VELOURA EAST — AUTHENTICATION EXPERIENCE
   Scoped design system for Login / Signup / Forgot / Reset /
   Email Verification only.

   Everything here is namespaced under .auth-page (or, for the
   verification-result screen, .verify-result-card) so nothing
   in the customer/corporate/partner dashboards — which also
   use .account-form, .btn-burgundy, etc. — is affected.
========================================================= */

/* app.css @imports navigation.css, which sets a global
   body { padding-top: calc(38px + 72px) } to reserve room for the
   site's fixed announcement bar + header. Most pages that load
   auth.css (login/register/forgot/reset) render NO header at all,
   so that reserved space becomes dead space above .auth-page — and
   because .auth-page is a rigid `height:100vh; overflow:hidden` box,
   pushing it down by 110px silently clips 110px off its own bottom
   instead of just adding a harmless gap.
   verify-email.php is the one page that loads auth.css but keeps
   the real site header (it only borrows .verify-result-card styles),
   so it still needs that reserved space — scope the reset to :has()
   so only pages that actually render .auth-page are affected. */
body:has(.auth-page) { padding-top: 0 !important; }
/* fix-marker: auth-dead-space-v2 — if you can see this comment in
   devtools but the gap is still there, the browser/CDN is serving a
   cached auth.css, not this file. Hard-refresh (Ctrl/Cmd+Shift+R) or
   bump the file's cache-busting query string. */

.auth-page {
  --auth-radius: 20px;
  --auth-radius-lg: 28px;
  --auth-ease: cubic-bezier(.4, 0, .2, 1);

  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--bg-2);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .auth-page * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================
   LEFT — BRAND / EDITORIAL PANEL
========================================= */

.auth-visual {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(201,169,110,.22), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(201,169,110,.14), transparent 50%),
    linear-gradient(160deg, #14110f 0%, #1c1712 55%, #0f0d0b 100%);
  color: #F5F1E8;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245,241,232,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15) 70%);
  opacity: .5;
}

.auth-visual-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  background: radial-gradient(circle, rgba(201,169,110,.35), transparent 70%);
  animation: authFloat 14s ease-in-out infinite;
}
.auth-visual-blob.b1 { width: 320px; height: 320px; top: -80px; right: -60px; }
.auth-visual-blob.b2 { width: 260px; height: 260px; bottom: -60px; left: -40px; animation-delay: -6s; }

@keyframes authFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(14px, -18px) scale(1.05); }
}

.auth-visual-top {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 5px;
}

.auth-visual-top span { color: var(--gold); }

/* Brand mark (image) on the dark left panel. logo-ve.png is a dark
   gold/brown mark — everywhere else it's used (header, footer, page
   loader) sits on a light background. Force it to a soft ivory here
   so it reads clearly against .auth-visual's dark background,
   without touching the unfiltered asset used elsewhere. */
.auth-visual-logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.92);
}

.auth-visual-mid {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.auth-visual-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,.4);
  background: rgba(201,169,110,.08);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}

.auth-visual-mid h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.25;
  margin: 0 0 18px;
  color: #fff;
}

.auth-visual-mid p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245,241,232,.72);
  margin: 0;
}

/* =========================================================
   AUTH TIMELINE — vertical onboarding-journey stepper for the
   left panel (Corporate / Partner register). Same visual
   language as the Concierge page's .ind-stepper (numbered
   circle, gold border, connecting line) but restructured
   vertically to fit this panel's narrow width, and renamed to
   .auth-timeline-* so nothing collides with industry-solutions.css.
========================================================= */
.auth-timeline {
  position: relative;
  margin-top: 28px;
}

.auth-timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 22px;
  opacity: 0;
  transform: translateY(14px);
  animation: authTimelineIn .3s var(--auth-ease) both;
}
.auth-timeline-item:last-child { padding-bottom: 2px; }
.auth-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: rgba(245,241,232,.14);
}

.auth-timeline-item:nth-child(1) { animation-delay: .05s; }
.auth-timeline-item:nth-child(2) { animation-delay: .13s; }
.auth-timeline-item:nth-child(3) { animation-delay: .21s; }
.auth-timeline-item:nth-child(4) { animation-delay: .29s; }
.auth-timeline-item:nth-child(5) { animation-delay: .37s; }
.auth-timeline-item:nth-child(6) { animation-delay: .45s; }
.auth-timeline-item:nth-child(7) { animation-delay: .53s; }
.auth-timeline-item:nth-child(8) { animation-delay: .61s; }

@keyframes authTimelineIn {
  to { opacity: 1; transform: translateY(0); }
}

.auth-timeline-num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,.35);
  border: 1px solid rgba(201,169,110,.45);
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.auth-timeline-content h4 {
  font-size: 13.5px;
  letter-spacing: .3px;
  color: #fff;
  margin: 4px 0 5px;
}

.auth-timeline-content p {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(245,241,232,.6);
  margin: 0;
}

.auth-visual-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,241,232,.14);
}

.auth-visual-stat b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold);
}

.auth-visual-stat span {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245,241,232,.55);
}

@media (max-width: 960px) {
  .auth-page { grid-template-columns: 1fr; height: auto; min-height: 100vh; overflow: visible; }
  .auth-visual { display: none; }
  .auth-panel { height: auto; overflow-y: visible; }
}

/* =========================================
   RIGHT — FORM PANEL
========================================= */

.auth-panel {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px;
  overflow: hidden;
}

.auth-panel::before,
.auth-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.auth-panel::before {
  width: 380px; height: 380px; top: -120px; right: -140px;
  background: radial-gradient(circle, rgba(201,169,110,.20), transparent 70%);
}
.auth-panel::after {
  width: 320px; height: 320px; bottom: -100px; left: -120px;
  background: radial-gradient(circle, rgba(110,20,35,.08), transparent 70%);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 24px 70px rgba(17,17,17,.10), 0 2px 8px rgba(17,17,17,.04);
  border-radius: var(--auth-radius-lg);
  padding: 48px 44px;
  animation: authCardIn .5s var(--auth-ease) both;
}

.auth-card--wide { max-width: 720px; }

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 960px) {
  .auth-panel { padding: 48px 18px; background: var(--bg-2); }
  .auth-card { padding: 36px 26px; border-radius: var(--auth-radius); }
}
@media (max-width: 480px) {
  .auth-card { padding: 30px 20px; }
}

/* =========================================
   HEADER BLOCK
========================================= */

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.auth-logo span { color: var(--gold-2); }
.auth-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  text-align: center;
  color: var(--black);
  margin: 0 0 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 30px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-footer a { color: var(--gold-2); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-back {
  text-align: center;
  margin-top: 14px;
}
.auth-back a {
  font-size: 12px;
  color: #888;
  text-decoration: none;
  transition: color .15s;
}
.auth-back a:hover { color: var(--gold-2); }

.auth-section-label {
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin: 30px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.auth-section-label:first-of-type { margin-top: 4px; padding-top: 0; border-top: none; }

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.auth-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .auth-grid-2, .auth-grid-3 { grid-template-columns: 1fr; }
}

/* =========================================
   FLOATING-LABEL FIELDS
========================================= */

.field {
  position: relative;
  margin-bottom: 20px;
}

.field > input,
.field > select,
.field > textarea {
  width: 100%;
  padding: 22px 16px 9px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .18s var(--auth-ease), box-shadow .18s var(--auth-ease);
}

.field > textarea { padding-top: 24px; min-height: 84px; resize: vertical; }

.field > select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7A' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
}

.field.field-password > input { padding-right: 46px; }

.field > input::placeholder { color: transparent; }

.field > label {
  position: absolute;
  left: 16px;
  top: 21px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  background: transparent;
  transition: all .16s var(--auth-ease);
  transform-origin: left top;
}

.field > input:focus,
.field > select:focus,
.field > textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,110,.14);
}

.field > input:focus ~ label,
.field > input:not(:placeholder-shown) ~ label,
.field > textarea:focus ~ label,
.field > textarea:not(:placeholder-shown) ~ label,
.field > select ~ label {
  top: 8px;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* A <select> always renders its first <option> text (there is no
   transparent-placeholder trick like inputs get), so its label can
   never safely rest in the overlap position — it's floated
   unconditionally above via the rule immediately above this one.
   When nothing valid is chosen yet, dim the label + option text
   together instead so it doesn't compete with the gold "answered"
   state used by every other filled field. */
.field > select:invalid ~ label { color: var(--muted); }
.field > select:invalid { color: var(--muted); }

.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* error / success state */
.field.has-error > input,
.field.has-error > select,
.field.has-error > textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(198,40,40,.08);
}
.field.has-error > label { color: var(--danger); }
.field.is-valid > input { border-color: #86c98e; }

/* file inputs — kept native for reliability, just restyled */
.field-file {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color .18s;
}
.field-file:hover, .field-file:focus-within { border-color: var(--gold); }
.field-file label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field-file input[type="file"] {
  width: 100%;
  font-size: 13px;
  color: var(--text);
}

/* =========================================
   PASSWORD TOGGLE
========================================= */

.password-toggle {
  position: absolute;
  right: 12px;
  top: 21px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  border-radius: 8px;
  transition: color .15s;
}
.password-toggle:hover { color: var(--gold-2); }
.password-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle .icon-hide { display: none; }
.password-toggle.is-visible .icon-show { display: none; }
.password-toggle.is-visible .icon-hide { display: block; }

/* =========================================
   PASSWORD STRENGTH METER
========================================= */

.strength {
  margin: -6px 0 20px;
}
.strength-track {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--danger);
  transition: width .25s var(--auth-ease), background-color .25s var(--auth-ease);
}
.strength-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: .3px;
}
.strength-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
  margin: 10px 0 0;
  padding: 0;
}
.strength-checklist li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  transition: color .15s;
}
.strength-checklist li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex: 0 0 auto;
  transition: background-color .15s;
}
.strength-checklist li.met { color: var(--success); }
.strength-checklist li.met::before { background: var(--success); }

/* =========================================
   CHECKBOXES
========================================= */

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background-color .15s, border-color .15s;
}
.check-row input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.check-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.check-row-inline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.check-row-inline label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; margin: 0; }
.check-row-inline a { font-size: 13px; color: var(--gold-2); text-decoration: none; }
.check-row-inline a:hover { text-decoration: underline; }

/* =========================================
   BUTTONS — loading state
========================================= */

.auth-card .btn-burgundy,
.auth-card .btn-gold {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 12px;
  gap: 10px;
  position: relative;
  transition: background-color .18s, border-color .18s, transform .12s, box-shadow .18s;
}
.auth-card .btn-burgundy:hover,
.auth-card .btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201,169,110,.28);
}
.auth-card .btn-burgundy:active,
.auth-card .btn-gold:active { transform: translateY(0); }

.auth-card button[type="submit"].is-loading {
  color: transparent !important;
  pointer-events: none;
}
.auth-card button[type="submit"].is-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  top: 50%; left: 50%;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  animation: authSpin .7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* =========================================
   ALERTS (inside auth card)
========================================= */

.auth-card .flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  animation: authSlideDown .3s var(--auth-ease) both;
}
@keyframes authSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-card .flash-icon { flex: 0 0 auto; margin-top: 1px; }

.resend-inline {
  margin: -8px 0 20px;
}
.resend-inline button {
  background: none;
  border: none;
  color: var(--gold-2);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.resend-inline button:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}

/* =========================================
   INPUT AUTOFILL — keep it on-brand
========================================= */
.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--text);
}

/* =========================================
   VERIFY-EMAIL RESULT CARD (standalone page,
   used on top of the main site header/footer)
========================================= */

.verify-result-wrap {
  padding: 96px 0 140px;
}

.verify-result-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 44px;
  box-shadow: 0 24px 60px rgba(17,17,17,.06);
  animation: authCardIn .5s cubic-bezier(.4,0,.2,1) both;
}

.verify-icon {
  width: 76px; height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.verify-icon.is-success { background: #E8F5E9; color: #2E7D32; }
.verify-icon.is-neutral { background: var(--bg-2); color: #C9A96E; }
.verify-icon.is-failed  { background: #FDECEA; color: #C62828; animation: verifyShake .5s var(--auth-ease); }

.verify-icon svg {
  width: 34px; height: 34px;
}
.verify-icon.is-success svg path,
.verify-icon.is-neutral svg path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: verifyDraw .6s .15s ease forwards;
}

@keyframes verifyDraw { to { stroke-dashoffset: 0; } }
@keyframes verifyShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.verify-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.verify-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 24px;
}
.verify-confetti span {
  position: absolute;
  top: -12px;
  width: 7px; height: 7px;
  border-radius: 1px;
  background: var(--gold);
  opacity: .85;
  animation: confettiFall 2.6s ease-in forwards;
}

@keyframes confettiFall {
  to { transform: translateY(340px) rotate(280deg); opacity: 0; }
}

@media (max-width: 640px) {
  .verify-result-wrap { padding: 64px 0 96px; }
  .verify-result-card { padding: 40px 22px; border-radius: 20px; }
}
