/* ============================================================
   eNotarize — login page (builds on style.css tokens)
   ============================================================ */
.lg { background: #fff; }
.lg__shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 100vh; }

/* ---------- form side ---------- */
.lg__main { display: flex; flex-direction: column; padding: 1.4rem clamp(1.25rem, 5vw, 4rem) 1.2rem; min-width: 0; }
.lg__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lg__back { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 600; color: var(--t-secondary); text-decoration: none; transition: color .2s; }
.lg__back:hover { color: var(--brand); }
.lg__back:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.lg__card { width: min(100%, 28rem); margin: auto; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-md); }
.lg__card h1, .lg__card h2 {
  width: fit-content; margin-bottom: .55rem;
  font: 700 clamp(1.8rem, 3vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -.03em;
  background: linear-gradient(100deg, #0D1219 0%, #04535C 40%, #088178 75%, #0E9F8E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.lg__sub { color: var(--t-secondary); font-size: .96rem; line-height: 1.55; max-width: 24rem; }

/* method switch */
.lg__tabs { display: flex; gap: 4px; margin: 1.5rem 0 1.3rem; padding: 4px; border-radius: 10px; background: var(--paper-3); border: 1px solid var(--line-2); }
.lg__tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem .5rem; border: 1px solid transparent; border-radius: 7px; background: none; cursor: pointer;
  font: 600 .84rem/1 var(--font-ui); color: var(--t-faint); transition: background .2s, color .2s, box-shadow .2s;
}
.lg__tab i { font-size: .78rem; }
.lg__tab:hover { color: var(--t); }
.lg__tab.is-on { background: #fff; color: var(--t); border-color: var(--line); box-shadow: var(--sh-sm); }
.lg__tab.is-on i { color: var(--brand); }
.lg__tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* fields */
.lg__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; min-width: 0; }
.lg__pane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; min-width: 0; }
.lg__pane[hidden], .lg__otp[hidden] { display: none; }
.lg__field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; min-width: 0; }
.lg__field label, .lg__row label { font-size: .82rem; font-weight: 600; color: var(--t); }
.lg__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.lg__link { font-size: .8rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.lg__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lg__link:focus-visible, .lg__alt a:focus-visible, .lg__foot a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

/* The .lg__input box (border, radius, padding, hover, focus) is shared with the
   booking/court selects and lives in style.css so both stay identical. */
.lg__cc { font-weight: 700; font-size: .9rem; color: var(--t); padding-right: .1rem; }
.lg__eye, .lg__send { flex: none; border: 0; cursor: pointer; font-family: var(--font-ui); }
.lg__eye { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 7px; background: none; color: var(--t-faint); font-size: .95rem; transition: background .2s, color .2s; }
.lg__eye:hover { background: rgba(22,28,36,.06); color: var(--t); }
.lg__send { padding: .45rem .95rem; border: 1.5px solid var(--brand); border-radius: 8px; background: none; color: var(--brand); font-weight: 600; font-size: .78rem; transition: all .3s; }
.lg__send:hover:not(:disabled) { background: var(--brand); color: #fff; }
.lg__send:disabled { opacity: .55; cursor: default; }
.lg__eye:focus-visible, .lg__send:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.lg__err { min-height: 0; font-size: .76rem; font-weight: 500; color: var(--error); }
.lg__err:empty { display: none; }
.lg__err--form { padding: .65rem .85rem; border-radius: 8px; background: var(--error-lighter); }
.lg__hint { font-size: .78rem; color: var(--t-faint); }
.lg__hint:empty { display: none; }
.lg__hint button { border: 0; background: none; padding: 0; cursor: pointer; font: 600 .78rem var(--font-ui); color: var(--brand); }
.lg__hint button:disabled { color: var(--t-disabled); cursor: default; }

/* OTP digits — same box spec as .lg__input so the whole form reads as one set */
.lg__digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.lg__digits input {
  height: 3.25rem; min-width: 0; text-align: center; border: 1px solid var(--line); border-radius: .75rem; outline: 0;
  background: var(--paper); font: 700 1.2rem/1 var(--font-display); color: var(--t);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lg__digits input:hover { border-color: var(--brand-line); }
.lg__digits input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.lg__digits.is-bad input { border-color: var(--error); box-shadow: 0 0 0 3px rgba(203, 2, 51, .10); }

/* checkbox */
.lg__check { display: flex; align-items: center; gap: .65rem; width: fit-content; cursor: pointer; font-size: .86rem; color: var(--t-secondary); }
.lg__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lg__box { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 5px; background: #fff; border: 1.5px solid var(--line); color: transparent; font-size: .62rem; transition: background .2s, border-color .2s, color .2s; }
.lg__check input:checked + .lg__box { background: var(--primary); border-color: var(--primary); color: #fff; }
.lg__check input:focus-visible + .lg__box { outline: 2px solid var(--primary); outline-offset: 2px; }

/* submit */
.lg__submit {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 11px 26px; border: 1.5px solid transparent; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%); color: #fff;
  font: 600 .92rem/1.35 var(--font-ui); box-shadow: 0 4px 15px rgba(8,129,120,.30);
  transition: all .3s;
}
.lg__submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(8,129,120,.40); }
.lg__submit:active { transform: translateY(0); }
.lg__submit:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.lg__submit-dot { display: inline-grid; place-items: center; font-size: .95em; transition: transform .3s; }
.lg__submit:hover .lg__submit-dot { transform: translateX(3px); }
.lg__submit.is-busy { opacity: .85; pointer-events: none; }
.lg__submit.is-busy .lg__submit-dot i { animation: lgSpin .8s linear infinite; }
.lg__submit.is-busy .lg__submit-dot i::before { content: '\f110'; }
@keyframes lgSpin { to { transform: rotate(360deg); } }

.lg__alt { margin-top: 1.4rem; text-align: center; font-size: .9rem; color: var(--t-secondary); }
.lg__alt a { font-weight: 700; color: var(--brand); text-decoration: none; }
.lg__alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lg__secure { margin-top: 1.1rem; font-size: .76rem; line-height: 1.5; color: var(--t-faint); text-align: center; }
.lg__secure i { color: var(--brand); margin-right: .45rem; }

.lg__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; font-size: .76rem; color: var(--t-faint); }
.lg__foot nav { display: flex; gap: 1.2rem; }
.lg__foot a { color: inherit; text-decoration: none; }
.lg__foot a:hover { color: var(--brand); }

/* ---------- brand side ---------- */
.lg__side {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem); color: #fff;
  background:
    radial-gradient(60% 55% at 85% 12%, rgba(8,129,120,.6) 0, transparent 70%),
    radial-gradient(50% 50% at 5% 100%, rgba(51,102,255,.28) 0, transparent 70%),
    linear-gradient(160deg, #0D1219 0%, #0B1B22 55%, #0A2A2D 100%);
}
.lg__side::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.5px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 80%); mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 80%);
}
.lg__seal {
  position: absolute; top: 12%; right: 10%; width: min(46%, 20rem); aspect-ratio: 1; z-index: -1;
  color: var(--brand-bright); opacity: .85; transform: rotate(-10deg);
  filter: drop-shadow(0 0 28px rgba(94,217,186,.35));
  animation: lgStamp .9s cubic-bezier(.3,.7,.2,1) .2s backwards;
}
@keyframes lgStamp { from { opacity: 0; transform: rotate(-10deg) scale(1.6); } }
.lg__sidecopy { max-width: 26rem; }
.lg__quote { font: 700 clamp(1.7rem, 2.8vw, 2.4rem)/1.12 var(--font-display); letter-spacing: -.025em; margin-bottom: 1.6rem; }
.lg__perks { list-style: none; display: grid; gap: .9rem; }
.lg__perks li { display: flex; align-items: center; gap: .8rem; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.82); }
.lg__perks span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--brand-bright); font-size: .85rem; flex: none; }
.lg__chip {
  position: absolute; top: 1.6rem; left: clamp(2rem, 5vw, 4rem); display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .76rem; font-weight: 600;
}
.lg__chip i { color: var(--brand-bright); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lg__shell { grid-template-columns: minmax(0, 1fr); }
  .lg__side { display: none; }
  .lg__card { padding: 1.5rem; }
}
@media (max-width: 420px) {
  .lg__card { padding: 1.25rem; box-shadow: var(--sh-sm); }
  .lg__tab { font-size: .78rem; gap: .35rem; }
  .lg__digits { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lg__seal { animation: none; }
  .lg__submit.is-busy .lg__submit-dot i { animation: none; }
  .lg__input, .lg__tab, .lg__submit, .lg__submit-dot, .lg__digits input { transition: none; }
  .lg__submit:hover { transform: none; }
}


/* ---------- forgot password ---------- */
.lg__lock { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand); font-size: 1.15rem; }
.lg__lock--ok { background: var(--success-lighter); border-color: rgba(34,154,22,.25); color: var(--success-dark); }
.lg__form--gap { margin-top: 1.5rem; }
.lg__done { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: start; }
.lg__done[hidden] { display: none; }
.lg__done > .lg__submit, .lg__done > .lg__ghostbtn { width: 100%; }
.lg__done .lg__sub b { color: var(--t); overflow-wrap: anywhere; }
.lg__done h2:focus { outline: 0; }
a.lg__submit { text-decoration: none; }
.lg__ghostbtn {
  display: flex; align-items: center; justify-content: center; padding: 11px 26px; cursor: pointer;
  background: none; border: 1.5px solid var(--brand); border-radius: 8px;
  font: 600 .92rem/1.35 var(--font-ui); color: var(--brand); transition: all .3s;
}
.lg__ghostbtn:hover { color: #fff; background: var(--brand); box-shadow: 0 8px 25px rgba(8,129,120,.30); }
.lg__ghostbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.lg__alt a i { margin-right: .35rem; }


/* ---------- create account ---------- */
.lg__meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .15rem; }
.lg__meter i { height: 4px; border-radius: 2px; background: var(--line); transition: background .25s; }
.lg__meter[data-level="1"] i:nth-child(-n+1) { background: var(--error); }
.lg__meter[data-level="2"] i:nth-child(-n+2) { background: var(--warning); }
.lg__meter[data-level="3"] i:nth-child(-n+3) { background: var(--primary-light); }
.lg__meter[data-level="4"] i { background: var(--success-dark); }
.lg__hint b { margin-left: .4rem; font-weight: 700; color: var(--t); }
.lg__check { align-items: flex-start; line-height: 1.5; }
.lg__check .lg__box { margin-top: .12rem; flex: none; }
.lg__check a { color: var(--brand); font-weight: 600; text-decoration: none; }
.lg__check a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lg__check a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.lg__ok { display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0 0; padding: .7rem .9rem; border-radius: 8px; background: var(--success-lighter); border: 1px solid rgba(34,154,22,.25); font-size: .86rem; font-weight: 600; color: var(--success-dark); }
.lg__ok[hidden] { display: none; }

/* ---------- polish: spacing, terms label, hint/error overlap ---------- */
.lg__top { margin-bottom: 1.25rem; }
.lg__foot { margin-top: 1.25rem; }
.lg__field .lg__check { font-size: .86rem; font-weight: 400; color: var(--t-secondary); }
.lg__field:has(.lg__err:not(:empty)) .lg__hint { display: none; }
