/* Sign-in page (templates/accounts/login.html). Loaded only on that page, after members.css.
   Colours come from the --wz-* tokens in site.css. */

/* The card carries its own title, so the members-area header strip isn't needed here */
.mx:has(.lg-card) .mx-hero { display: none; }
.mx:has(.lg-card) .mx-container { padding-top: clamp(2rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.mx:has(.lg-card) { background:
  radial-gradient(700px 420px at 15% 10%, rgba(40,70,200,.28), transparent 65%),
  radial-gradient(800px 480px at 90% 90%, rgba(255,205,0,.08), transparent 60%),
  linear-gradient(180deg, #050a2a 0%, #0a1230 100%); }

.lg-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 940px !important; margin: 0 auto;
  border-radius: 26px; overflow: hidden; border: 1px solid var(--wz-line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  box-shadow: 0 30px 70px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: lg-in .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes lg-in { from { opacity: 0; translate: 0 18px; scale: .985; } }

/* ---- Welcome panel ------------------------------------------------------ */
.lg-side { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff; background:
    radial-gradient(380px 260px at 100% 0%, rgba(255,205,0,.28), transparent 65%),
    linear-gradient(150deg, #00008b 0%, #0b1a6b 50%, #050a2a 100%); }
.lg-side::before, .lg-side::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255,205,0,.16); }
.lg-side::before { width: 340px; height: 340px; right: -170px; bottom: -150px; }
.lg-side::after { width: 220px; height: 220px; right: -110px; bottom: -90px; border-color: rgba(255,205,0,.1); }
.lg-logo { width: auto; height: 64px; align-self: flex-start; margin-bottom: 1.75rem; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.lg-side-kicker { margin: 0 0 .25rem !important; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wz-gold) !important; }
.lg-side-title { margin: 0 0 1.5rem !important; font-family: "STIX Two Text", "Playfair Display", serif; font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.1; color: #fff !important; }
.lg-perks { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .85rem; }
.lg-perks li { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.88); font-weight: 500; }
.lg-perks span { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,205,0,.13); border: 1px solid rgba(255,205,0,.28); color: var(--wz-gold); font-size: .95rem; }
.lg-side-note { margin: auto 0 0 !important; display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem;
  color: rgba(255,255,255,.62) !important; }
.lg-side-note i { color: var(--wz-gold); }

/* ---- Form --------------------------------------------------------------- */
.lg-main { padding: clamp(1.75rem, 4vw, 2.75rem); }
.mx .lg-title { margin: 0 0 .35rem; color: #fff; font-family: "STIX Two Text", "Playfair Display", serif; font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.2rem) !important; line-height: 1.15; }
.lg-lead { margin: 0 0 1.5rem; color: var(--wz-muted) !important; }
.lg-alert { display: flex; gap: .6rem; align-items: flex-start; }
.lg-alert i { margin-top: .2rem; }

.lg-form .member-field { margin-bottom: 1rem !important; }
.lg-form .form-label { font-weight: 600; font-size: .9rem; color: rgba(244,246,251,.85); }
/* leading icons, drawn as backgrounds so they need no extra markup */
.mx .lg-field .form-control { padding-left: 2.85rem; background-repeat: no-repeat; background-position: .95rem 50%; background-size: 18px; }
.mx .lg-field-email .form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9afc4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.mx .lg-field-password .form-control { padding-right: 3.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9afc4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }

.lg-input-wrap { position: relative; display: block; }
.lg-reveal { position: absolute; top: 50%; right: .4rem; translate: 0 -50%; width: 38px; height: 38px; border: 0; border-radius: 8px;
  background: transparent; color: var(--wz-muted); cursor: pointer; transition: color .15s, background .15s; }
.lg-reveal:hover, .lg-reveal:focus-visible { color: #fff; background: var(--wz-surface-2); outline: 0; }

.lg-forgot { margin: -.35rem 0 1.25rem !important; text-align: right; font-size: .88rem; }
.mx .lg-forgot a { text-decoration: none; }
.mx .lg-forgot a:hover { text-decoration: underline; }
.mx .lg-submit { width: 100%; gap: .6rem; min-height: 52px; font-size: 1.02rem; transition: translate .15s, box-shadow .2s; }
.mx .lg-submit:hover { transform: none; translate: 0 -1px; box-shadow: 0 12px 28px rgba(255,205,0,.32); }
.lg-submit i { transition: translate .2s; }
.lg-submit:hover i { translate: 3px 0; }

.lg-hint { display: flex; gap: .6rem; align-items: flex-start; margin: 1.25rem 0 0 !important; padding: .8rem 1rem; border-radius: 12px;
  background: var(--wz-surface); border: 1px solid var(--wz-line); font-size: .85rem; color: var(--wz-muted) !important; }
.lg-hint i { margin-top: .2rem; color: var(--wz-gold); }

/* staff */
.lg-divider { display: flex; align-items: center; gap: .9rem; margin: 1.75rem 0 1rem; font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--wz-muted); }
.lg-divider::before, .lg-divider::after { content: ""; flex: 1; height: 1px; background: var(--wz-line); }
.mx a.lg-microsoft { display: flex; justify-content: center; width: 100%; min-height: 48px; border-radius: 999px; border: 1px solid var(--wz-line);
  background: rgba(255,255,255,.95); color: #2b2b2b; transition: background .15s, translate .15s; }
.mx a.lg-microsoft:hover, .mx a.lg-microsoft:focus-visible { background: #fff; color: #000; translate: 0 -1px; }
.lg-staff-note { margin: .5rem 0 0 !important; text-align: center; font-size: .8rem; color: var(--wz-muted) !important; }

.lg-join { margin: 1.75rem 0 0 !important; padding-top: 1.25rem; border-top: 1px solid var(--wz-line); text-align: center; color: var(--wz-muted) !important; }
.mx .lg-join a { font-weight: 700; }

/* ---- Code step (templates/accounts/verify.html) ------------------------ */
.lg-verify { grid-template-columns: minmax(0, 1fr); max-width: 500px !important; text-align: center; }
.lg-verify .lg-main { position: relative; padding-top: clamp(1.5rem, 3vw, 2rem); }
.lg-verify .lg-main::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, #f2e496, #ffcd00 50%, #ba983c); }

.lg-steps { list-style: none; display: flex; justify-content: center; align-items: center; gap: .6rem; margin: 0 0 1.75rem; padding: 0;
  font: 600 .78rem/1 var(--font-two, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--wz-muted); }
.lg-steps li { display: inline-flex; align-items: center; gap: .45rem; }
.lg-steps li + li::before { content: ""; width: 34px; height: 2px; margin-right: .15rem; border-radius: 2px; background: var(--wz-gold); }
.lg-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .72rem;
  border: 1px solid var(--wz-line); }
.lg-steps .is-done { color: rgba(244,246,251,.8); }
.lg-steps .is-done span { background: rgba(76,175,80,.2); border-color: rgba(139,226,154,.5); color: #8be29a; }
.lg-steps .is-current { color: var(--wz-gold); }
.lg-steps .is-current span { background: var(--wz-gold); border-color: var(--wz-gold); color: var(--wz-navy); font-weight: 800; }

.lg-badge { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 20px;
  font-size: 1.6rem; color: var(--wz-gold); background: rgba(255,205,0,.12); border: 1px solid rgba(255,205,0,.32);
  box-shadow: 0 12px 30px rgba(255,205,0,.12); }
.lg-badge::after { content: ""; position: absolute; inset: -7px; border-radius: 26px; border: 1px solid rgba(255,205,0,.18);
  animation: lg-pulse 2.4s ease-out infinite; }
@keyframes lg-pulse { from { opacity: 1; scale: .92; } to { opacity: 0; scale: 1.18; } }
.lg-verify .lg-lead { max-width: 38ch; margin-inline: auto; }
.lg-verify .lg-lead strong { color: #fff; overflow-wrap: anywhere; }
.lg-badge svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.lg-code .member-field { margin-bottom: 1.1rem !important; }
.lg-code .form-label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wz-muted); }
.mx .lg-code .form-control { width: 100%; max-width: none; min-height: 64px; text-align: center; font-size: 1.75rem; font-weight: 700;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; letter-spacing: .4em; text-indent: .4em;
  border-radius: 14px; background-color: rgba(255,255,255,.06); }
.mx .lg-code .form-control::placeholder { letter-spacing: .4em; color: rgba(255,255,255,.22); }
.lg-code .field-error { text-align: center; }

.lg-remember { display: flex !important; align-items: center; gap: 1rem; margin: .25rem 0 1.75rem !important; padding: 1.05rem 1.2rem; text-align: left; line-height: 1.4;
  border-radius: 12px; border: 1px solid var(--wz-line); background: var(--wz-surface); cursor: pointer; transition: border-color .15s, background .15s; }
.lg-remember:hover { border-color: rgba(255,255,255,.28); }
.lg-remember:has(input:checked) { border-color: rgba(255,205,0,.5); background: var(--wz-gold-soft); }
.lg-remember input { flex: none; margin: 0 !important; width: 1.25rem; height: 1.25rem; accent-color: #ffcd00; cursor: pointer; }
.lg-remember strong { display: block; font-weight: 600; font-size: .93rem; color: #fff; }
.lg-remember small { display: block; margin-top: .3rem; font-size: .8rem; color: var(--wz-muted); }

.lg-verify .lg-hint { text-align: left; }
.lg-verify .lg-hint code { color: #ffe28a; }
.lg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem;
  padding-top: 1.1rem; border-top: 1px solid var(--wz-line); font-size: .88rem; }
.lg-foot form { margin: 0; }
.mx .lg-foot a, .lg-linkbtn { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.mx .lg-foot a { color: var(--wz-muted); }
.mx .lg-foot a:hover { color: #fff; }
.lg-linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--wz-gold); cursor: pointer; }
.lg-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.lg-foot a:only-child { margin-inline: auto; }

/* ---- Small screens: the welcome panel becomes a short banner ------------ */
@media (max-width: 767.98px) {
  .lg-card { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .lg-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding: 1.25rem 1.5rem; }
  .lg-logo { height: 48px; margin: 0; }
  .lg-side-title { display: none; }
  .lg-perks, .lg-side-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-card, .lg-badge::after { animation: none; }
  .lg-submit, .lg-submit i, .lg-microsoft { transition: none; }
}
