/* Wamy sign-in page — WhatsApp Web style: colour band, card with steps + form */
.lg-page { overflow: auto; min-height: 100dvh; background: var(--ws-panel-2); padding-bottom: 32px; position: relative; }
.lg-band { position: absolute; inset: 0 0 auto; height: 222px; background: linear-gradient(135deg, #01807b 0%, #015e66 45%, #022847 100%); z-index: 0; }
[data-theme="dark"] .lg-band { background: linear-gradient(135deg, #01534f 0%, #022847 60%, #061520 100%); border-bottom: 1px solid var(--ws-line); }
.lg-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 26px 16px 34px; }
.lg-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 22px; font-weight: 800; text-decoration: none; }
.lg-logo img { border-radius: 12px; }
.lg-lang { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; text-decoration: none; }
.lg-lang:hover { background: rgba(255,255,255,.24); }
.lg-card { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-width: 1100px; margin: 0 auto; border-radius: 6px; background: var(--ws-panel); box-shadow: 0 17px 50px rgba(11,20,26,.19), 0 12px 15px rgba(11,20,26,.24); overflow: hidden; }
.lg-how { padding: clamp(28px, 4.5vw, 64px); border-inline-end: 1px solid var(--ws-line); }
.lg-how h1 { margin: 0 0 8px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; line-height: 1.35; }
.lg-how .lead { margin: 0 0 28px; color: var(--ws-muted); font-size: 17px; line-height: 1.8; }
.lg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.lg-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.lg-steps .n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ws-ink); font-weight: 800; }
.lg-steps b { display: block; font-size: 18px; font-weight: 700; }
.lg-steps small { display: block; color: var(--ws-muted); line-height: 1.7; }
.lg-tip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 30px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(var(--ws-brand-rgb), .08); color: var(--ws-ink); font-size: 15px; line-height: 1.7; }
.lg-tip i { color: var(--ws-brand-ink); font-size: 1.3rem; line-height: 1.3; }
.lg-form { display: grid; align-content: center; padding: clamp(28px, 4.5vw, 64px); }
.lg-form form { display: grid; gap: 0; }
.lg-ic { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 20px; background: rgba(var(--ws-brand-rgb), .12); color: var(--ws-brand-ink); font-size: 1.8rem; }
.lg-form h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.lg-form .sub { margin: 0 0 22px; color: var(--ws-muted); line-height: 1.8; }
.lg-form .sub .to { color: var(--ws-ink); direction: ltr; unicode-bidi: isolate; }
.lg-label { margin-bottom: 6px; font-weight: 700; }
.lg-input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--ws-line); border-radius: 12px; background: var(--ws-panel); color: var(--ws-ink); font-size: 17px; text-align: left; }
.lg-input::placeholder { color: var(--ws-muted); }
.lg-input:focus { outline: none; border-color: var(--ws-brand); box-shadow: 0 0 0 4px rgba(var(--ws-brand-rgb), .14); }
.lg-input.bad { border-color: var(--ws-danger); }
.lg-err { min-height: 1.7em; margin: 6px 0 8px; color: var(--ws-danger); font-size: 15px; font-weight: 700; }
.lg-go { width: 100%; min-height: 52px; font-size: 17px; }
.lg-go:disabled { opacity: .55; cursor: default; filter: none; }
.lg-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ws-brand-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.lg-link:disabled { color: var(--ws-muted); text-decoration: none; cursor: default; }
.lg-otp-f { margin: 0; padding: 0; border: 0; }
.lg-otp { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.lg-otp input { width: 54px; height: 62px; border: 1.5px solid var(--ws-line); border-radius: 14px; background: var(--ws-panel); color: var(--ws-ink); text-align: center; font-size: 26px; font-weight: 800; caret-color: var(--ws-brand); transition: border-color var(--ws-ease), box-shadow var(--ws-ease); }
.lg-otp input:focus { outline: none; border-color: var(--ws-brand); box-shadow: 0 0 0 4px rgba(var(--ws-brand-rgb), .14); }
.lg-otp input.filled { border-color: rgba(var(--ws-brand-rgb), .55); }
.lg-otp.bad input { border-color: var(--ws-danger); animation: lg-shake 380ms ease; }
.lg-otp.good input { border-color: var(--ws-brand); background: rgba(var(--ws-brand-rgb), .08); }
@keyframes lg-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.lg-otp-f + .lg-err { text-align: center; }
.lg-resend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 12px; color: var(--ws-muted); }
.lg-hint { display: flex; gap: 8px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ws-panel-2); color: var(--ws-muted); font-size: 15px; line-height: 1.7; }
.lg-hint i { color: var(--ws-info); }
.lg-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 16px 0; color: var(--ws-muted); font-size: 15px; text-align: center; }
@media (max-width: 859.98px) {
  .lg-band { height: 170px; }
  .lg-top { padding: 18px 16px 22px; }
  .lg-card { grid-template-columns: minmax(0, 1fr); margin-inline: 16px; border-radius: 16px; }
  .lg-form { order: -1; border-bottom: 1px solid var(--ws-line); }
  .lg-how { border: 0; }
}
@media (max-width: 400px) { .lg-otp { gap: 6px; } .lg-otp input { width: 44px; height: 54px; font-size: 22px; } }

/* opened from a contact link (start.php): who they are about to write to */
.lg-to { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--ws-brand-rgb), .08); }
.lg-to .ws-av { width: 48px; height: 48px; flex: 0 0 auto; }
.lg-to b { display: block; font-size: 17px; }
.lg-to small { display: block; color: var(--ws-muted); font-size: 15px; }

/* "Continue with Google" (core/google.php): above the e-mail form, divided from it by "or with your e-mail" */
.lg-google { display: grid; gap: 14px; margin-bottom: 14px; }
.lg-gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid var(--ws-line); border-radius: 14px; background: #fff; color: #1f1f1f; font-size: 17px; font-weight: 700; text-decoration: none; transition: background 150ms ease, transform 150ms ease; }
.lg-gbtn:hover { background: #f4f6f8; transform: translateY(-1px); }
.lg-gbtn:focus-visible { outline: 3px solid rgba(var(--ws-brand-rgb), .55); outline-offset: 2px; }
.lg-gbtn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.lg-or { display: flex; align-items: center; gap: 12px; color: var(--ws-muted); font-size: 15px; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--ws-line); }
[data-theme="dark"] .lg-gbtn { border-color: transparent; }
.lg-legal { position: relative; z-index: 1; margin: 6px 16px 0; color: var(--ws-muted); font-size: 15px; text-align: center; }
.lg-legal a { color: var(--ws-brand-ink); font-weight: 700; }

.lg-top-links { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
