/* Sign-in / sign-up pages for gifts shoppers and vendors (v1/views/gifts/*login.php, *register.php). */

.gauth-body *,
.gauth-body *::before,
.gauth-body *::after { box-sizing: border-box; }

.gauth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--gifts-cream, #fdf6f0);
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--gifts-espresso, #2e2420);
}

.gauth {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 100vh;
}

/* ---------- Brand panel ---------- */
.gauth-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  background: var(--gifts-espresso, #2e2420);
  color: #fdf6f0;
}
.gauth-panel::before,
.gauth-panel::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}
.gauth-panel::before {
  width: 420px;
  height: 420px;
  right: -160px;
  top: -140px;
  background: radial-gradient(circle, rgba(156, 43, 43, 0.55) 0%, rgba(156, 43, 43, 0) 70%);
}
.gauth-panel::after {
  width: 360px;
  height: 360px;
  left: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(194, 138, 46, 0.28) 0%, rgba(194, 138, 46, 0) 70%);
}
.gauth-panel > * { position: relative; z-index: 1; }
.gauth-panel-logo img { height: 30px; width: auto; }
.gauth-panel-body { margin: auto 0; padding: 48px 0; max-width: 440px; }
.gauth-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8b86a;
}
.gauth-panel h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fdf6f0;
}
.gauth-panel h2 em { font-style: italic; color: #f0a59a; }
.gauth-panel-lead { color: rgba(253, 246, 240, 0.72); line-height: 1.6; margin: 0 0 32px; }
.gauth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.gauth-points li { display: flex; gap: 14px; align-items: flex-start; }
.gauth-points .gauth-point-icon {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 246, 240, 0.08);
  border: 1px solid rgba(253, 246, 240, 0.12);
  color: #f0a59a;
  font-size: 0.95rem;
}
.gauth-points strong { display: block; font-weight: 600; color: #fdf6f0; font-size: 0.95rem; }
.gauth-points span { display: block; color: rgba(253, 246, 240, 0.62); font-size: 0.85rem; line-height: 1.5; margin-top: 2px; }
.gauth-panel-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.gauth-panel-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(253, 246, 240, 0.2);
  color: #fdf6f0;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms;
}
.gauth-panel-links a:hover { background: rgba(253, 246, 240, 0.08); border-color: rgba(253, 246, 240, 0.35); color: #fdf6f0; }
.gauth-panel-foot { font-size: 0.8rem; color: rgba(253, 246, 240, 0.45); }

/* ---------- Form side ---------- */
.gauth-main {
  display: flex;
  flex-direction: column;
  padding: 28px 48px 40px;
  background: var(--gifts-cream, #fdf6f0);
}
.gauth-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 36px;
}
.gauth-topbar-logo { display: none; margin-right: auto; }
.gauth-topbar-logo img { height: 26px; width: auto; }
.gauth-switch { margin: 0; font-size: 0.875rem; color: var(--gifts-muted, #6f5f57); }
.gauth-switch a { color: var(--gifts-coral-dark, #7d2222); font-weight: 600; text-decoration: none; white-space: nowrap; }
.gauth-switch a:hover { text-decoration: underline; }

.gauth-form-wrap { width: 100%; max-width: 440px; margin: auto; padding: 40px 0; }
.gauth-form-wrap.is-wide { max-width: 560px; }
.gauth-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--gifts-espresso, #2e2420);
}
.gauth-subtitle { color: var(--gifts-muted, #6f5f57); margin: 0 0 28px; line-height: 1.6; }

.gauth-field { margin-bottom: 18px; }
.gauth-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gifts-espresso, #2e2420);
}
.gauth-label .gauth-optional { font-weight: 400; color: var(--gifts-muted, #6f5f57); font-size: 0.8rem; }
.gauth-label a { font-weight: 500; font-size: 0.8rem; color: var(--gifts-coral-dark, #7d2222); text-decoration: none; }
.gauth-label a:hover { text-decoration: underline; }
.gauth-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--gifts-espresso, #2e2420);
  background: #fff;
  border: 1px solid #e6d3c4;
  border-radius: 10px;
  transition: border-color 150ms, box-shadow 150ms;
}
.gauth-input::placeholder { color: #b3a49b; }
.gauth-input:focus {
  outline: none;
  border-color: var(--gifts-coral, #9c2b2b);
  box-shadow: 0 0 0 3px rgba(156, 43, 43, 0.12);
}
.gauth-input.is-invalid { border-color: #c53030; }
.gauth-input.text-uppercase { letter-spacing: 0.06em; }
.gauth-hint { margin: 6px 0 0; font-size: 0.8rem; color: var(--gifts-muted, #6f5f57); }
.gauth-error, .error-message { margin: 6px 0 0 !important; font-size: 0.8rem !important; color: #c53030 !important; }
.gauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.gauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--gifts-coral, #9c2b2b);
  cursor: pointer;
  transition: background-color 150ms, box-shadow 150ms, transform 150ms;
}
.gauth-btn:hover { background: var(--gifts-coral-dark, #7d2222); box-shadow: 0 6px 16px rgba(156, 43, 43, 0.25); }
.gauth-btn:active { transform: translateY(1px); }
.gauth-btn:disabled { opacity: 0.65; cursor: not-allowed; box-shadow: none; }
.gauth-btn-ghost {
  height: 50px;
  padding: 0 20px;
  border: 1px solid #e6d3c4;
  border-radius: 10px;
  background: #fff;
  color: var(--gifts-espresso, #2e2420);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.gauth-btn-ghost:hover { background: #f7ebe1; }

.gauth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b3a49b;
}
.gauth-divider::before, .gauth-divider::after { content: ""; flex: 1; height: 1px; background: #e6d3c4; }
.gauth-google { display: flex; justify-content: center; min-height: 44px; }
.gauth-google-wrap { position: relative; }
.gauth-google-guard { position: absolute; inset: 0; cursor: pointer; }
.gauth-google-guard[hidden] { display: none; }
.gauth-guide-mobile { display: none; }

.gauth-footer-text { margin: 24px 0 0; text-align: center; color: var(--gifts-muted, #6f5f57); font-size: 0.9rem; }
.gauth-footer-text a { color: var(--gifts-coral-dark, #7d2222); font-weight: 600; text-decoration: none; }
.gauth-footer-text a:hover { text-decoration: underline; }
.gauth-legal { margin: 12px 0 0; text-align: center; font-size: 0.78rem; color: var(--gifts-muted, #6f5f57); line-height: 1.5; }
.gauth-legal a { color: inherit; text-decoration: underline; }

.gauth-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: 0.85rem; color: var(--gifts-muted, #6f5f57); line-height: 1.5; }
.gauth-check input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gifts-coral, #9c2b2b); cursor: pointer; }
.gauth-check a { color: var(--gifts-coral-dark, #7d2222); }

.gauth-reveal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gifts-coral-dark, #7d2222);
  cursor: pointer;
}
.gauth-reveal:hover { text-decoration: underline; }

.gauth-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 0 0 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e6d3c4;
  border-left: 3px solid var(--gifts-gold, #c28a2e);
  font-size: 0.85rem;
  color: var(--gifts-espresso, #2e2420);
  line-height: 1.5;
}
.gauth-note i { color: var(--gifts-gold, #c28a2e); margin-top: 3px; }
.gauth-note a { color: var(--gifts-coral-dark, #7d2222); font-weight: 600; }

/* password-toggle.js wraps the input; keep its eye button on-brand */
.gauth .sh-pw-toggle { color: #9a8a80; }
.gauth .sh-pw-toggle:hover { color: var(--gifts-espresso, #2e2420); }
.gauth .sh-pw-toggle:focus-visible { outline-color: var(--gifts-coral, #9c2b2b); }

/* reCAPTCHA v3 badge: the forms carry the required notice instead */
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 991.98px) {
  .gauth { grid-template-columns: 1fr; }
  .gauth-panel { display: none; }
  .gauth-guide-mobile { display: inline; }
  .gauth-topbar-logo { display: block; }
  .gauth-main { padding: 20px 20px 32px; }
  .gauth-form-wrap { padding: 32px 0 8px; }
}
@media (max-width: 575.98px) {
  .gauth-grid { grid-template-columns: 1fr; }
  .gauth-title { font-size: 1.75rem; }
  .gauth-switch .gauth-switch-lead { display: none; }
}
