/* ==========================================================================
   AUTH PAGES — Login & Registration
   Full-width two-column: image left + form right, NO page title
   ========================================================================== */

/* ── Hide WooCommerce "My account" page title on auth page ──────────────── */
.woocommerce-account:not(.logged-in) .entry-title,
.woocommerce-account:not(.logged-in) h1.entry-title,
.woocommerce-account:not(.logged-in) .page-title,
.woocommerce-account:not(.logged-in) .woocommerce-breadcrumb,
.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-navigation,
body.woocommerce-account:not(.logged-in) > #page h1:not(.auth-form__heading),
body.woocommerce-account:not(.logged-in) > div > h1:not(.auth-form__heading),
/* WooCommerce shortcode wraps content in .woocommerce; hide heading before auth wrap */
.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account:not(.logged-in) .woocommerce > h1,
/* Entry header / post title area */
.woocommerce-account:not(.logged-in) .entry-header,
.woocommerce-account:not(.logged-in) .page-header,
/* The section heading "My account" with ── lines */
.woocommerce-account:not(.logged-in) .section-title,
body.woocommerce-account:not(.logged-in) h1 {
  display: none !important;
}


/* ── Remove all container/padding/margin on auth page ───────────────────── */
.woocommerce-account:not(.logged-in) .woocommerce-page-wrapper,
.woocommerce-account:not(.logged-in) .container,
.woocommerce-account:not(.logged-in) #main,
.woocommerce-account:not(.logged-in) .site-main,
.woocommerce-account:not(.logged-in) article,
.woocommerce-account:not(.logged-in) .hentry {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ── Auth Wrapper ────────────────────────────────────────────────────────── */
.rajputi-auth-wrap {
  display: flex;
  min-height: calc(100vh - 136px);
  background: #f5ede8;
  width: 100%;
}

/* ── LEFT PANEL: Image + Branding ───────────────────────────────────────── */
.auth-image-panel {
  flex: 0 0 42%;
  position: relative;
  background-color: var(--clr-header-bg, #260A20);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
}

.auth-image-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(38, 10, 32, 0.10) 0%,
    rgba(38, 10, 32, 0.40) 45%,
    rgba(38, 10, 32, 0.85) 100%
  );
  z-index: 1;
}

.auth-image-panel__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  color: #fff;
  width: 100%;
}

.auth-panel__eyebrow {
  display: block;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold, #C9A84C);
  margin-bottom: 0.65rem;
}

.auth-panel__title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.auth-panel__subtitle {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.6rem;
  line-height: 1.45;
  max-width: 280px;
}

/* Feature list */
.auth-panel__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-panel__feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.auth-panel__feature-icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(201,168,76,0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(201,168,76,0.08);
}

.auth-panel__feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--clr-gold, #C9A84C);
  fill: none;
}

.auth-panel__feature div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.auth-panel__feature strong {
  font-size: 0.83rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

.auth-panel__feature span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-sans, 'Inter', sans-serif);
}

/* Quote */
.auth-panel__quote {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 0.6rem;
}

.auth-panel__ornament {
  color: var(--clr-gold, #C9A84C);
  font-size: 1.2rem;
  letter-spacing: 4px;
  opacity: 0.7;
}

/* ── RIGHT PANEL: Form ───────────────────────────────────────────────────── */
.auth-form-panel {
  flex: 1;
  background: #f5ede8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  overflow-y: auto;
}

.auth-form-inner {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8d5cc;
  box-shadow: 0 6px 32px rgba(107,39,55,0.08);
  padding: 2rem 1.85rem;
}

/* Gold ornament */
.auth-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.auth-ornament svg {
  width: 100px;
  height: 16px;
}

/* Headings */
.auth-form__heading {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #1A0A0E;
  text-align: center;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.auth-form__subheading {
  font-size: 0.8rem;
  color: #7A5A62;
  text-align: center;
  margin: 0 0 1.4rem;
  line-height: 1.5;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

/* WooCommerce notices */
.rajputi-auth-wrap .woocommerce-notices-wrapper,
.rajputi-auth-wrap .woocommerce-error,
.rajputi-auth-wrap .woocommerce-message,
.rajputi-auth-wrap .woocommerce-info {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-field-group {
  margin-bottom: 0.8rem;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #e0c8ce;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.auth-input-wrap:focus-within {
  border-color: var(--clr-primary, #6B2737);
  box-shadow: 0 0 0 3px rgba(107,39,55,0.1);
}

.auth-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
  color: #7A5A62;
}

.auth-input-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.auth-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.76rem 0.75rem 0.76rem 0;
  font-size: 0.85rem;
  color: #3D1A22;
  background: transparent;
  min-width: 0;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

.auth-input::placeholder {
  color: #b5a0a6;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

/* Phone field */
.auth-phone-code {
  border: none;
  border-right: 1.5px solid #e0c8ce;
  background: #fdf5ee;
  color: #3D1A22;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.76rem 0.4rem 0.76rem 0;
  cursor: pointer;
  outline: none;
  font-family: var(--font-sans, 'Inter', sans-serif);
  width: 68px;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%237A5A62' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}

.auth-input--phone {
  padding-left: 0.5rem;
}

/* Password toggle */
.auth-password-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: #7A5A62;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.auth-password-toggle:hover { color: var(--clr-primary, #6B2737); }

.auth-password-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

/* ── Checkbox ─────────────────────────────────────────────────────────────── */
.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.78rem;
  color: #3D1A22;
  line-height: 1.4;
  position: relative;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

.auth-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth-checkmark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #e0c8ce;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s ease;
  background: #fff;
}

.auth-checkbox:checked + .auth-checkmark {
  background: var(--clr-primary, #6B2737);
  border-color: var(--clr-primary, #6B2737);
}

.auth-checkbox:checked + .auth-checkmark::after {
  content: '';
  display: block;
  width: 4px;
  height: 7px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.auth-terms-text a {
  color: var(--clr-primary, #6B2737);
  text-decoration: underline;
}

.auth-terms-row { margin-bottom: 1.1rem; }

.auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  gap: 0.5rem;
}

.auth-forgot-link {
  font-size: 0.78rem;
  color: var(--clr-primary, #6B2737);
  text-decoration: underline;
  white-space: nowrap;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

.auth-forgot-link:hover { text-decoration: none; }

/* ── Submit Button ────────────────────────────────────────────────────────── */
.auth-submit-btn {
  width: 100%;
  padding: 0.88rem 1rem;
  background: var(--clr-primary, #6B2737);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: var(--font-sans, 'Inter', sans-serif);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin-top: 0.15rem;
}

.auth-submit-btn:hover {
  background: var(--clr-primary-dark, #4E1A27);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(107,39,55,0.35);
}

.auth-submit-btn:active { transform: translateY(0); }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: #7A5A62;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0c8ce;
}

/* ── Social Buttons ──────────────────────────────────────────────────────── */
.auth-social-btns {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.68rem 1rem;
  border: 1.5px solid #e0c8ce;
  border-radius: 8px;
  background: #fff;
  color: #3D1A22;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans, 'Inter', sans-serif);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-social-btn:hover {
  border-color: #c4a0a8;
  background: #fdf5ee;
}

.auth-social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Switch Link ──────────────────────────────────────────────────────────── */
.auth-switch-link {
  text-align: center;
  font-size: 0.82rem;
  color: #7A5A62;
  margin: 1rem 0 0;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

.auth-switch-link a {
  color: var(--clr-primary, #6B2737);
  font-weight: 700;
  text-decoration: underline;
}

.auth-switch-link a:hover { text-decoration: none; }

/* ── Trust Badges ────────────────────────────────────────────────────────── */
.auth-trust-badges {
  display: flex;
  justify-content: space-around;
  gap: 0.4rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid #f0e4e8;
}

.auth-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  flex: 1;
}

.auth-trust-badge__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-trust-badge__icon svg {
  width: 21px;
  height: 21px;
  stroke: var(--clr-primary, #6B2737);
  fill: none;
}

.auth-trust-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.auth-trust-badge__text strong {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1A0A0E;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

.auth-trust-badge__text small {
  font-size: 0.6rem;
  color: #7A5A62;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

/* ── Mobile Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rajputi-auth-wrap {
    flex-direction: column;
    min-height: auto;
  }

  .auth-image-panel {
    flex: none;
    min-height: 280px;
    height: 300px;
  }

  .auth-panel__features { display: none; }
  .auth-panel__quote { display: none; }
  .auth-panel__ornament { display: none; }

  .auth-form-panel {
    padding: 1.5rem 1rem;
  }

  .auth-form-inner {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-image-panel { height: 220px; }
  .auth-form-inner { padding: 1.25rem 1rem; border-radius: 10px; }
  .auth-trust-badges { gap: 0.2rem; }
}
