/*
  Login page (login/index): form card on the left, product panel on the right.
  Uses the ui.css kit tokens (.ui wrapper). On a phone the product panel goes under the form.
*/
body.login_background_img { background: #f6f7f9; }
.lg { --lg-red: #b3261e; min-height: 100vh; display: grid; place-items: center; gap: 0; padding: 32px 16px; background: var(--ui-page); }

.lg-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%; max-width: 980px; min-height: 600px;
  background: #fff; border: 1px solid var(--ui-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(26, 35, 48, .10);
}

/* ---------- left: forms ---------- */
.lg-side { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.lg-inner { width: 100%; max-width: 380px; }
.lg-logo { display: block; height: 44px; width: auto; margin: 0 0 24px; }

.lg-seg { display: flex; gap: 4px; margin: 0 0 24px; padding: 4px; list-style: none; background: var(--ui-soft); border-radius: 10px; }
.lg-seg li { flex: 1; }
.lg-seg a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ui-muted); font-weight: 600; text-align: center; text-decoration: none !important; }
.lg-seg a:hover { color: var(--ui-navy); }
.lg-seg li.active a { background: #fff; color: var(--ui-navy); box-shadow: 0 1px 3px rgba(26, 35, 48, .12); }
.lg-seg a:focus-visible { outline: 2px solid var(--ui-navy); outline-offset: 2px; }

.lg-form { margin: 0; }
.lg-stack { display: flex; flex-direction: column; gap: 14px; }
.lg-head h1 { font-size: 22px; font-weight: 700 !important; letter-spacing: -.01em; }
.lg-head p { margin: 4px 0 0; color: var(--ui-muted); }
.lg .form-group { margin: 0; }
.lg .ui-label > span:first-child, .lg .ui-label > label:first-child { color: var(--ui-ink); font-size: 12.5px; font-weight: 600; }
.lg-input { height: 42px; padding: 0 12px; font-size: 14px; }

/* password box with the eye button inside */
.lg-pass { position: relative; }
.lg-pass .lg-input { padding-right: 44px; }
.lg-eye { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 34px; border: 0; border-radius: 6px; background: none; color: var(--ui-muted); font-size: 16px; cursor: pointer; }
.lg-eye:hover { background: var(--ui-soft); color: var(--ui-navy); }
.lg-eye:focus-visible { outline: 2px solid var(--ui-navy); outline-offset: 0; }
.lg-caps { display: flex; align-items: center; gap: 6px; color: #7a5410; font-size: 12px; font-weight: 600; }
.lg-caps[hidden] { display: none; }
.lg-otp { height: 50px; font-size: 22px; font-weight: 600; letter-spacing: .4em; text-align: center; }
.lg-otp::placeholder { font-size: 14px; font-weight: 400; letter-spacing: normal; }

/* Login after the first click: locked + spinner */
.lg .is-busy { opacity: .75; cursor: wait !important; pointer-events: none; }
.lg-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: lg-spin .7s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

/* account ready (after sign up OTP) */
#lgWelcome[hidden] { display: none; }
.lg-idbox { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; border: 1px dashed #9fd2b4; border-radius: 12px; background: #e6f3ec; }
.lg-idbox span { color: #14532d; font-size: 12px; font-weight: 600; }
.lg-idbox b { color: var(--ui-navy); font-size: 26px; font-weight: 700; letter-spacing: .04em; user-select: all; }
.lg .has-error .lg-input { border-color: var(--lg-red); }
.lg-hint { color: var(--ui-faint); font-size: 12px; font-weight: 400; }
.lg-err { display: block; margin-top: 4px; color: var(--lg-red); font-size: 12px; }
.lg-msg { margin: 0; padding: 9px 12px; border-radius: 8px; background: #fdf3dc; color: #7a5410; }

.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lg-check { display: inline-flex !important; align-items: center; gap: 6px; margin: 0; color: var(--ui-ink); font-size: 13px; cursor: pointer; }
.lg-check .checker, .lg-check .radio { margin: 0 !important; }
.lg-radios { display: flex; gap: 20px; }
.lg-tnc { align-items: flex-start; font-size: 12.5px; line-height: 1.5; }
.lg-link, .lg-tnc a { color: var(--ui-navy); font-weight: 600; text-decoration: none; }
.lg-link:hover, .lg-tnc a:hover { text-decoration: underline; }

.lg-btn { width: 100%; height: 44px; justify-content: center; font-size: 14px; }
.lg-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-btns .ui-btn { flex: 1; justify-content: center; height: 40px; }
.lg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.lg-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid #f1c6c3; border-radius: 8px; background: #fde8e7; color: #8f1d17; font-weight: 600; }
.lg-alert-x { margin-left: auto; padding: 0 4px; border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }

/* ---------- right: product panel ---------- */
.lg-brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 48px 44px 32px; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .10) 0 120px, transparent 121px),
    radial-gradient(circle at 10% 95%, rgba(255, 255, 255, .07) 0 160px, transparent 161px),
    linear-gradient(150deg, #1f3650 0%, #24506b 55%, #3a8a86 100%);
}
.lg-eyebrow { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lg-brand h2 { margin: 14px 0 22px; color: #fff; font-size: 28px; font-weight: 700 !important; line-height: 1.2; letter-spacing: -.01em; }
.lg-feats { display: flex; flex-direction: column; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 15px; }
.lg-feats li { display: flex; align-items: center; gap: 12px; }
.lg-feats .fa { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #9fe0c2; font-size: 11px; }
.lg-more { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.lg-more:hover { background: rgba(255, 255, 255, .12); }
.lg-powered { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.lg-powered a { display: inline-flex; padding: 6px 10px; border-radius: 8px; background: #fff; }
.lg-powered img { height: 26px; width: auto; }

/* ---------- tablet / phone: product panel goes under the form ---------- */
@media (max-width: 820px) {
  .lg { padding: 16px; place-items: start center; }
  .lg-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lg-side { padding: 28px 20px; }
  .lg-brand { padding: 28px 24px 24px; gap: 20px; }
  .lg-brand h2 { font-size: 22px; margin: 10px 0 16px; }
  .lg-feats { font-size: 14px; margin-bottom: 20px; }
}
@media (max-width: 420px) {
  .lg-two { grid-template-columns: minmax(0, 1fr); }
}
