/* Login / signup. Prefix: lg-. Built only from tokens.css; site.css supplies the
   header and the .st-home-scene illustration this page shares with the home page. */

.lg-main { padding: clamp(32px, 6vw, 72px) 0 var(--s-16); }
.lg-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-10);
  align-items: start;
  justify-items: center;
}

.lg-card {
  width: 100%;
  max-width: 420px;
  padding: var(--s-8) var(--s-6);
  display: grid;
  gap: var(--s-5);
}

.lg-title { text-align: center; }

.lg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  padding: 2px;
  border-radius: var(--r-sm);
  background: var(--sunken);
  border: 1px solid var(--line-soft);
}
.lg-tab {
  height: 36px;
  padding: 0 var(--s-3);
  border: none;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lg-tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px var(--line); }

.lg-notice { margin: 0; }

.lg-google {
  width: 100%;
  gap: var(--s-3);
  height: 42px;
}
.lg-google-icon { width: 18px; height: 18px; flex: none; }
.lg-google[aria-disabled="true"] { pointer-events: none; color: var(--ink-4); background: var(--canvas-tint); border-color: var(--line-soft); }

.lg-divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-4);
  font-size: var(--text-sm);
}
.lg-divider::before, .lg-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.lg-form { display: grid; gap: var(--s-4); }
.lg-submit { width: 100%; }
/* The acceptance: a real checkbox with the sentence as its label, so the whole line is
   the hit area and a screen reader announces the two together. Left-aligned, because a
   centred paragraph of terms reads as decoration rather than as something to act on. */
.lg-terms { margin: 0; }
.lg-terms a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.lg-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; cursor: pointer; }
.lg-consent-box { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.lg-consent .ui-body { color: var(--ink-2); line-height: var(--lh-md); }
/* Google also creates an account, so it waits for the box the same way the button does.
   aria-disabled rather than a removed href: the link stays focusable and says why. */
.lg-google.is-disabled { opacity: 0.55; pointer-events: none; }

/* "Glömt lösenordet?" sits under the password field, right-aligned; the button itself is
   .ui-linkbtn from the shared layer. */
.lg-linkrow { display: flex; justify-content: flex-end; margin: calc(var(--s-2) * -1) 0 0; font-size: var(--text-sm); }
.lg-foot { margin: 0; text-align: center; }
.lg-foot a { color: var(--accent-ink); }

@media (min-width: 900px) {
  .lg-wrap {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-12);
    justify-items: stretch;
  }
  .lg-card { justify-self: end; }
  .lg-scene { display: block; min-height: 480px; }
  /* The reset page has no illustration beside the card, so its wrapper stays one column. */
  .lg-wrap-single { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .lg-wrap-single .lg-card { justify-self: center; }
}

.lg-scene { display: none; }
