/*
 * The sign-in page and the pages around it (design v2, component 17). Colours, sizes and type come from
 * the tokens (ui-tokens/tokens.css) and the buttons from ui-tokens/components.css; this file only lays
 * them out. Geist is self-hosted (fonts/), so the page makes no third-party request.
 */
@font-face { font-family: "Geist"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/geist-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/geist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }

body.lc-id {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}
.lc-id a { color: var(--ink); }

/* The mark: an L and a signal corner, on a 3 x 3 grid of --s / 3 cells. */
.lc-mark {
  --s: 26px;
  --c: calc(var(--s) / 3);
  position: relative;
  width: var(--s);
  height: var(--s);
  flex: none;
}
.lc-mark > i {
  position: absolute;
  display: block;
}
.lc-mark .l-v { left: 0; top: 0; width: var(--c); height: var(--s); background: var(--mark-ink, var(--ink)); }
.lc-mark .l-h { left: 0; top: calc(var(--c) * 2); width: var(--s); height: var(--c); background: var(--mark-ink, var(--ink)); }
.lc-mark .corner { left: calc(var(--c) * 2); top: 0; width: var(--c); height: var(--c); background: var(--mark-signal, var(--signal)); }

/* The master lockup: mark, lou.cloud, a rule, next. */
.lc-lockup { display: flex; align-items: center; gap: 12px; }
.lc-wordmark {
  display: flex;
  align-items: baseline;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.lc-wordmark .dot { display: inline-block; width: 5px; height: 5px; background: var(--signal); margin: 0 2px 0 3px; }
.lc-lockup .rule { width: 1px; height: 22px; background: var(--line); }
.lc-lockup .next { font-size: 24px; font-weight: 300; letter-spacing: -0.04em; color: var(--ink-secondary); }

/* The page: the form on the left, the graphite panel on the right. */
.lc-split { display: flex; min-height: 100vh; }
.lc-main {
  flex: 1 1 520px;
  min-width: 0;
  box-sizing: border-box;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
}
.lc-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  padding: 48px 0;
}
.lc-form h1 {
  margin: 0;
  font-size: var(--type-heading-1-size);
  line-height: var(--type-heading-1-line);
  font-weight: var(--type-heading-1-weight);
  letter-spacing: var(--type-heading-1-tracking);
}
.lc-intro { margin: 8px 0 28px; color: var(--ink-muted); line-height: 1.5; }
.lc-field { margin-bottom: 16px; }
.lc-field label { display: block; font-size: var(--type-small-size); color: var(--ink-muted); margin-bottom: 6px; }
.lc-field .cc-input { box-sizing: border-box; min-height: var(--control-lg); background: var(--surface); }
.lc-error {
  margin: 0 0 16px;
  color: var(--text-danger);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}
.lc-warning { margin: 0 0 16px; color: var(--ink-muted); }
.lc-devnote { margin: 0 0 12px; color: var(--ink-muted); font-size: var(--type-small-size); }
.lc-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
  color: var(--ink-muted);
  font-size: 12px;
}
.lc-or::before, .lc-or::after { content: ""; flex: 1; height: 1px; background: var(--line-subtle); }
.lc-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-form .cc-btn--lg { width: 100%; }

.lc-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: var(--type-small-size);
  color: var(--ink-muted);
}
.lc-foot a { color: var(--ink-muted); }
.lc-links { display: flex; gap: 16px; }
.lc-lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.lc-lang a {
  display: inline-flex;
  align-items: center;
  height: var(--control-sm);
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: var(--type-small-size);
}
.lc-lang a + a { border-left: 1px solid var(--line); }
.lc-lang a[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.lc-lang a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* The graphite panel is graphite in both themes. */
.lc-panel {
  --mark-ink: #EDECE7;
  --mark-signal: #F06A43;
  flex: 1 1 480px;
  box-sizing: border-box;
  background: #15171A;
  color: #EDECE7;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.lc-panel .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A3A6AB;
}
.lc-panel .lc-mark { --s: 312px; }
.lc-panel .tagline { font-size: 36px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.lc-panel .tagline-en { font-size: 18px; color: #A3A6AB; margin-top: 8px; }

/* Up to 1024px wide the panel is a band above the form; up to 768px it is gone (17: "at 1024px ... at 768px"). */
@media (max-width: 1024px) {
  .lc-split { flex-direction: column; }
  .lc-panel { order: -1; flex: none; flex-direction: row; align-items: center; gap: 24px; padding: 20px 32px; }
  .lc-panel .label { display: none; }
  .lc-panel .lc-mark { --s: 48px; }
  .lc-panel .tagline { font-size: 22px; }
  .lc-panel .tagline-en { font-size: 14px; margin-top: 2px; }
  .lc-main { flex: 1 1 auto; padding: 32px; }
}
@media (max-width: 768px) {
  .lc-panel { display: none; }
  .lc-main { padding: 24px 20px; }
  .lc-lockup .lc-wordmark, .lc-lockup .next { font-size: 20px; }
}

/* The plain pages (Index, Error). */
.lc-plain { max-width: 480px; margin: 0 auto; padding: 64px 24px; }
.lc-plain h1 { font-size: var(--type-heading-1-size); line-height: var(--type-heading-1-line); letter-spacing: var(--type-heading-1-tracking); margin: 24px 0 8px; }
