/* ============================================================
   Auth Pages — Login / Register  (Luxury Wellness Redesign)
   ============================================================ */

.auth-body {
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  width: 100%;
}

/* ============================================================
   LEFT PANEL — Brand / Luxury showcase
   ============================================================ */
.auth-panel-left {
  background:
    radial-gradient(circle at 18% 12%, rgba(201,169,110,0.10) 0%, transparent 42%),
    radial-gradient(circle at 85% 88%, rgba(201,169,110,0.07) 0%, transparent 45%),
    linear-gradient(160deg, #100d07 0%, #1a1205 48%, #0d0b07 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 52px 56px;
  position: relative;
  overflow: hidden;
}
/* faint geometric watermark */
.auth-panel-left::after {
  content: '';
  position: absolute;
  right: -120px; bottom: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.10);
  box-shadow:
    inset 0 0 0 36px rgba(201,169,110,0.04),
    inset 0 0 0 90px rgba(201,169,110,0.025);
  pointer-events: none;
}

.auth-brand-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  max-width: 420px;
}

/* ---- Logo + name ---- */
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  text-decoration: none;
}
.auth-diamond {
  color: var(--gold);
  line-height: 1;
}
.auth-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: 0.3px;
}

/* gold eyebrow above slogan */
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.auth-eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.auth-brand-tagline {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* ---- Brand slogan (long sentence — readable, elegant) ---- */
.auth-brand-slogan {
  text-transform: none;
  letter-spacing: 0.2px;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  line-height: 1.55;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  max-width: 400px;
  margin-bottom: 30px;
}

/* ---- Feature list (login) ---- */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.auth-feature-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  color: var(--gold);
  background: radial-gradient(circle at 50% 40%, rgba(201,169,110,0.18) 0%, rgba(201,169,110,0.05) 70%, transparent 100%);
  border: 1px solid rgba(201,169,110,0.30);
}

/* ---- Service price menu (register — à la carte treatment list) ---- */
.auth-menu {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  max-height: 44vh;
  overflow-y: auto;
  padding-right: 12px;
  margin-top: 4px;
}
.auth-menu::-webkit-scrollbar { width: 4px; }
.auth-menu::-webkit-scrollbar-track { background: transparent; }
.auth-menu::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.35); border-radius: 2px; }

/* single column = flex list */
.auth-menu-list { display: flex; flex-direction: column; }

/* 2-column variant (เมนูยาว → แบ่ง 2 คอลัมน์) */
.auth-menu--2col { max-width: 100%; }
.auth-menu--2col .auth-menu-list {
  display: block;
  column-count: 2;
  column-gap: 30px;
}
.auth-menu--2col .auth-menu-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.auth-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 14px;
  margin-bottom: 10px;
}
.auth-menu-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,169,110,0.45), transparent);
}
.auth-menu-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(201,169,110,0.10);
}
.auth-menu-item:last-child { border-bottom: none; }
.auth-menu-name {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}
/* dotted leader between name and price (classic menu look) */
.auth-menu-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(201,169,110,0.30);
  transform: translateY(-3px);
  min-width: 16px;
}
.auth-menu-price {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* ---- เมนูเต็ม Left Panel (เฉพาะหน้าที่มีเมนู = Register) ---- */
.auth-brand-wrap:has(.auth-menu) {
  justify-content: flex-start;   /* ชิดบน ไม่ลอยกลาง */
  max-width: 600px;              /* ใช้ความกว้าง panel เต็มขึ้นเพื่อรองรับ 2 คอลัมน์ */
}
.auth-brand-wrap:has(.auth-menu) .auth-menu {
  flex: 1 1 auto;               /* ยืดเต็มความสูงที่เหลือ */
  max-width: none;
  max-height: none;
  margin-top: 10px;
}
.auth-menu--2col .auth-menu-list {
  flex: 1;
  column-fill: auto;            /* เติมคอลัมน์ซ้ายเต็มความสูงก่อน แล้วค่อยขึ้นคอลัมน์ขวา → เต็มแนวตั้ง */
}
.auth-brand-wrap:has(.auth-menu) .auth-menu-item { padding: 11px 0; }

/* ---- Trust strip (bottom of left panel) ---- */
.auth-trust {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(201,169,110,0.14);
  position: relative;
  z-index: 1;
}
.auth-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-trust-num {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 5px;
}
.auth-trust-num i { font-size: 15px; }
.auth-trust-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

/* ============================================================
   RIGHT PANEL — Form
   ============================================================ */
.auth-panel-right {
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 408px;
}

.auth-form-header { margin-bottom: 30px; }
.auth-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}
.auth-form-sub { font-size: 13.5px; color: var(--text-muted); }

/* Alert */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
}
.auth-alert i { font-size: 16px; flex-shrink: 0; }
.auth-alert-error {
  background: rgba(224,85,85,0.10);
  border: 1px solid rgba(224,85,85,0.30);
  color: var(--red);
}
.auth-alert-info {
  background: rgba(201,169,110,0.10);
  border: 1px solid rgba(201,169,110,0.35);
  color: var(--gold);
}
.auth-alert-success {
  background: color-mix(in srgb, var(--green, #3fae6b) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--green, #3fae6b) 35%, transparent);
  color: var(--green, #3fae6b);
}
.auth-field-error {
  margin: 6px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--red);
}

/* Form Groups */
.auth-form-group { margin-bottom: 17px; }
.auth-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--gold);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
}
.auth-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 13px 42px 13px 42px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.14);
  background: var(--bg-card-hover);
}
.auth-input::placeholder { color: var(--text-muted); }
.auth-eye-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.auth-eye-btn:hover { color: var(--gold); }

/* Auto-password / info notice card */
.auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  background: rgba(201,169,110,0.07);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.auth-notice-icon {
  font-size: 17px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}
.auth-notice-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-notice-text strong { color: var(--text-primary); }

/* Row with checkbox + link */
.auth-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.auth-checkbox-label input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.auth-link-sm { font-size: 12.5px; color: var(--gold); font-weight: 500; }
.auth-link-sm:hover { color: var(--gold-light); }

/* Submit button */
.auth-btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #1a1206;
  border: none;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.4px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 16px rgba(201,169,110,0.22);
}
.auth-btn-submit i { font-size: 16px; transition: transform 0.2s; }
.auth-btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.40);
}
.auth-btn-submit:hover:not(:disabled) i { transform: translateX(3px); }
.auth-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* Social button group */
.auth-social-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.auth-btn-social {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: inherit;
  letter-spacing: 0.2px;
  position: relative;
}
.auth-btn-google {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 16px rgba(0,0,0,0.4);
}
.auth-btn-google:hover {
  background: #f1f3f4;
  border-color: #f1f3f4;
  box-shadow: 0 0 0 3px rgba(66,133,244,0.25), 0 6px 20px rgba(0,0,0,0.45);
  transform: translateY(-2px);
  color: #1f1f1f;
}
.auth-btn-line {
  background: #06c755;
  color: #fff;
  border-color: #06c755;
  box-shadow: 0 2px 8px rgba(6,199,85,0.2);
}
.auth-btn-line:hover {
  background: #05b84d;
  border-color: #05b84d;
  transform: translateY(-1px);
}

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

/* Switch link */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 24px;
}
.auth-link { color: var(--gold); font-weight: 600; }
.auth-link:hover { color: var(--gold-light); }

/* Back-to-home link */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
  transition: color 0.2s;
}
.auth-back:hover { color: var(--gold); }
.auth-back i { font-size: 14px; }

/* ============================================================
   Responsive — Tablet & Mobile
   ============================================================ */
@media (max-width: 860px) {
  .auth-body { display: block; }
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .auth-panel-left {
    padding: 32px 26px 26px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow: visible;
    text-align: center;
  }
  .auth-panel-left::after { display: none; }
  .auth-brand-wrap {
    flex: none;
    justify-content: flex-start;
    align-items: center;
    max-width: none;
  }
  .auth-logo { align-items: center; margin-bottom: 12px; }
  .auth-eyebrow { display: none; }
  .auth-brand-tagline {
    margin-bottom: 14px;
  }
  .auth-brand-slogan {
    max-width: 520px;
    margin: 0 auto;
    font-size: 16px;
  }
  /* Hide heavy content on stacked mobile to keep focus on the form */
  .auth-features,
  .auth-menu,
  .auth-trust { display: none; }

  .auth-panel-right {
    padding: 34px 24px 48px;
    overflow-y: visible;
  }
  .auth-form-wrap { max-width: 460px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .auth-panel-left { padding: 24px 18px 20px; }
  .auth-logo { gap: 8px; margin-bottom: 8px; }
  .auth-brand-name { font-size: 19px; }
  .auth-diamond.logo-frame { --lf-size: 64px !important; }
  .auth-brand-tagline { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 10px; }
  .auth-brand-slogan { font-size: 14.5px; }

  .auth-panel-right { padding: 28px 18px 40px; }
  .auth-form-header { margin-bottom: 24px; }
  .auth-form-title { font-size: 25px; }

  .auth-form-row-2 { grid-template-columns: 1fr; gap: 0; }

  .auth-input {
    font-size: 16px; /* prevent iOS zoom on focus */
    padding: 13px 42px 13px 42px;
  }
  .auth-btn-submit { padding: 15px; }
}
