/* LeelaLer OTP Login — stylesheet
   Palette pulled from leelaler.com screenshots:
   cream bg, warm taupe borders, olive/sand tones, dark charcoal text
----------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --ll-cream:   #f9f6f1;
  --ll-white:   #fdfbf8;
  --ll-sand:    #e8dfd0;
  --ll-taupe:   #c4b49a;
  --ll-accent:  #8b7355;
  --ll-olive:   #6b6b4e;
  --ll-dark:    #2e2e2e;
  --ll-muted:   #7b7060;
  --ll-border:  #ddd5c4;
  --ll-error:   #a84848;
  --ll-radius:  0px;          /* LeelaLer uses sharp corners */
  --ll-trans:   0.22s ease;
}

/* ── Hide "My account" page heading & remove WC container padding ────────── */
.woocommerce-account:not(.logged-in) .woocommerce > h1,
.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account:not(.logged-in) .entry-title,
.woocommerce-account:not(.logged-in) h1.page-title,
.woocommerce-account:not(.logged-in) h2.page-title {
  display: none !important;
}

/* Full-width: break out of any theme container */
.woocommerce-account:not(.logged-in) #primary,
.woocommerce-account:not(.logged-in) #main,
.woocommerce-account:not(.logged-in) .site-main,
.woocommerce-account:not(.logged-in) main,
.woocommerce-account:not(.logged-in) .content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Hide sidebar if theme has one */
.woocommerce-account:not(.logged-in) #secondary,
.woocommerce-account:not(.logged-in) .widget-area {
  display: none !important;
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.llol-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 80px;
  background: #ffffff;
  font-family: hepta slab, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.llol-card {
  background: var(--ll-white);
  border: 1px solid var(--ll-border);
  width: 100%;
  max-width: 420px;
  padding: 52px 44px 48px;
  position: relative;
  /* box-shadow: 6px 6px 0 var(--ll-sand); */
  animation: llol-fadein 0.35s ease both;
}

@keyframes llol-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Typography ─────────────────────────────────────────────────────────── */
.llol-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 400 !important;
  color: var(--ll-dark);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.llol-sub {
  font-size: 0.85rem;
  color: var(--ll-muted);
  font-weight: 300;
  margin: 0 0 32px;
  line-height: 1.6;
}

/* ── Fields ─────────────────────────────────────────────────────────────── */
.llol-field-group {
  margin-bottom: 20px;
}

.llol-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ll-muted);
  margin-bottom: 7px;
}

.llol-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ll-border);
  background: var(--ll-cream);
  color: var(--ll-dark);
  font-family: hepta slab, sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 12px 14px;
  outline: none;
  /* transition: border-color var(--ll-trans), background var(--ll-trans); */
  border-radius: 0;
  -webkit-appearance: none;
}

.llol-input:focus {
  border-color: var(--ll-accent);
  background: var(--ll-white);
}

.llol-input::placeholder {
  color: var(--ll-taupe);
}

/* ── Phone row ──────────────────────────────────────────────────────────── */
.llol-phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.llol-select {
  border: 1px solid var(--ll-border);
  background: var(--ll-cream);
  color: var(--ll-dark);
  font-family: hepta slab, sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  padding: 12px 8px;
  outline: none;
  cursor: pointer;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  /* Fixed small width for country code */
  flex: 0 0 70px;
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  box-sizing: border-box;
  transition: border-color var(--ll-trans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.llol-select:focus {
  border-color: var(--ll-accent);
}

/* Mobile number takes all remaining space */
.llol-phone-row .llol-input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  box-sizing: border-box;
}

/* ── OTP boxes ──────────────────────────────────────────────────────────── */
.llol-otp-boxes {
  display: flex;
  gap: 8px;
  margin: 4px 0 20px;
}

.llol-otp-box {
  flex: 1;
  aspect-ratio: 1;
  max-width: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 400;
  font-family: 'Cormorant Garamond', serif;
  border: 1px solid var(--ll-border);
  background: var(--ll-cream);
  color: var(--ll-dark);
  outline: none;
  /* transition: border-color var(--ll-trans), background var(--ll-trans); */
  border-radius: 0;
  padding: 0;
  -webkit-appearance: none;
}

.llol-otp-box:focus {
  border-color: var(--ll-accent);
  background: var(--ll-white);
}

.llol-otp-box.filled {
  border-color: var(--ll-accent);
  background: var(--ll-white);
}

/* ── Button ─────────────────────────────────────────────────────────────── */
.llol-btn {
  width: 100%;
  background: #d4d0b2;
  color: black;
  font-family: hepta slab, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  padding: 15px 24px;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--ll-trans), color var(--ll-trans), box-shadow var(--ll-trans);
  border-radius: 0;
  position: relative;
}

.llol-btn a{
  text-decoration: none !important;
  font-family: hepta slab, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: black;
}


.llol-btn:hover {
  background: var(--ll-accent);
  box-shadow: 3px 3px 0 var(--ll-taupe);
}

.llol-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ll-taupe);
}

.llol-btn:disabled {
  background: var(--ll-taupe);
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Back button ────────────────────────────────────────────────────────── */
.llol-back {
  background: none;
  border: none;
  color: var(--ll-muted);
  font-family: hepta slab, sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color var(--ll-trans);
}

.llol-back:hover {
  color: var(--ll-accent);
}

/* ── Link button (resend) ───────────────────────────────────────────────── */
.llol-link-btn {
  background: none;
  border: none;
  color: var(--ll-olive);
  font-family: hepta slab, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ll-trans);
}

.llol-link-btn:hover { color: var(--ll-accent); }
.llol-link-btn:disabled {
  color: var(--ll-taupe);
  cursor: not-allowed;
  text-decoration: none;
}

/* ── Error / note ───────────────────────────────────────────────────────── */
.llol-error {
  color: var(--ll-error);
  font-size: 0.8rem;
  font-weight: 300;
  margin: -4px 0 12px;
  line-height: 1.5;
}

.llol-note {
  font-size: 0.75rem;
  color: black;
  font-weight: 300;
  margin-top: 18px;
  line-height: 1.65;
  text-align: center;
}

.llol-note a {
  color: var(--ll-olive);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── reCAPTCHA invisible ────────────────────────────────────────────────── */
#llol-recaptcha { margin-bottom: 4px; }

/* ── Resend timer ───────────────────────────────────────────────────────── */
#llol-resend-timer {
  color: var(--ll-taupe);
  font-size: 0.78rem;
  font-weight: 300;
}

/* ── Success step ───────────────────────────────────────────────────────── */
.llol-card--success {
  text-align: center;
}

.llol-success-icon {
  width: 56px;
  height: 56px;
  background: var(--ll-olive);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 24px;
  line-height: 1;
}

.llol-success-detail {
  background: var(--ll-cream);
  border: 1px solid var(--ll-border);
  padding: 16px 20px;
  margin: 20px 0 28px;
  font-size: 0.85rem;
  color: var(--ll-muted);
  font-weight: 300;
  line-height: 1.7;
  text-align: left;
}

.llol-success-detail p{
  margin: 0 !important;
}

/* ── Responsive — Tablet ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .llol-wrap {
    padding: 40px 16px 60px;
    align-items: flex-start;
  }

  .llol-card {
    max-width: 100%;
    padding: 40px 28px 36px;
    /* box-shadow: 4px 4px 0 var(--ll-sand); */
  }

  .llol-title {
    font-size: 20px;
  }
}

/* ── Responsive — Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .llol-wrap {
    padding: 24px 12px 48px;
    min-height: 100svh;
    align-items: flex-start;
    background: #fff;
  }

  .llol-card {
    padding: 32px 20px 28px;
    /* box-shadow: 3px 3px 0 var(--ll-sand); */
    border-left: none;
    border-right: none;
    max-width: 100%;
  }

  .llol-title {
    font-size: 18px;
  }

  .llol-sub {
    font-size: 0.82rem;
    margin-bottom: 24px;
  }

  /* Phone row: CC even smaller on mobile */
  .llol-select {
    flex: 0 0 90px;
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    font-size: 1rem;
    padding:0;
    /* padding: 12px 6px; */
  }

  .llol-phone-labels .llol-label:first-child {
    flex: 0 0 74px;
    width: 74px;
  }

  /* OTP boxes: 6 boxes fit on small screen */
  .llol-otp-boxes {
    gap: 6px;
  }

  .llol-otp-box {
    font-size: 1.15rem;
    max-width: none;
    min-width: 0;
    padding: 10px 0;
  }

  .llol-btn {
    padding: 14px 20px;
    font-size: 0.78rem;
  }

  .llol-note {
    font-size: 0.73rem;
  }

  .llol-back {
    font-size: 0.75rem;
  }

  .llol-success-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}

/* ── Responsive — Very small (≤360px) ───────────────────────────────────── */
@media (max-width: 360px) {
  .llol-card {
    padding: 28px 16px 24px;
  }

  .llol-otp-boxes {
    gap: 4px;
  }

  .llol-otp-box {
    font-size: 1rem;
    padding: 9px 0;
  }

  .llol-select {
    flex: 0 0 66px;
    width: 66px;
    min-width: 66px;
    max-width: 66px;
    font-size: 0.75rem;
    padding: 12px 4px;
  }

  .llol-phone-labels .llol-label:first-child {
    flex: 0 0 66px;
    width: 66px;
  }
}

/* ── Dual labels above phone row ────────────────────────────────────────── */
.llol-phone-labels {
  display: flex;
  gap: 8px;
  margin-bottom: 7px;
}

.llol-phone-labels .llol-label {
  margin-bottom: 0;
}

.llol-phone-labels .llol-label:first-child {
  flex: 0 0 90px;
  width: 90px;
}

.llol-phone-labels .llol-label:last-child {
  flex: 1;
}
