/* English /login in Ink and Lime (Vytas, 2026-11-03). Markup: frontend/login/_login_ink.pug, dev only (cfInkLogin).
   Production renders login_en.pug's own markup with look/login.css; nothing here reaches it.
   Layout for a login page: the left column has one job (sign in), the right panel recaps what you can do
   (six items with colour-frame icons, as on the homepage), and the proof row sits at the panel foot, away from the button.
   Desktop fits one screen with no vertical scroll from 1024x700 up. Tokens match ink/home.css. */

:root {
  --cf-ink: #141414;
  --cf-mist: #f4f4f5;
  --cf-line: #e4e4e7;
  --cf-field: #d4d4d8;
  --cf-text: #18181b;
  --cf-text-2: #52525b;
  --cf-text-3: #71717a;
  --cf-lime: #d1fe17;
  --cf-lime-lo: #bfe80a;
  --cf-ig: #3797f0;
  /* 2026-11-20: the app's softer lit lime (cr-app-revamp tokens.css --grad-lime), so both sign-in pages show one button. ink/home.css keeps #e0ff66 / #bfe80a. */
  --cf-grad-lime: linear-gradient(180deg, #d7fe3a 0%, #d1fe17 45%, #c9f512 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html, body.lg-body { margin: 0; padding: 0; background: #fff; }
html body.lg-body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--cf-text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.lgx *, .lgx *::before, .lgx *::after { box-sizing: border-box; }
:where(.lgx) :where(h1, h2, p, ul) { margin: 0; padding: 0; }
:where(.lgx) a { color: inherit; }
.lgx a:focus-visible { outline: 2px solid var(--cf-ink); outline-offset: 3px; border-radius: 6px; }
.lgx img { display: block; max-width: 100%; }

/* ---------- Phone first ---------- */
.lgx { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.lgx__form { display: flex; flex-direction: column; align-items: center; padding: 22px 24px 72px; text-align: center; }
/* 40px touch floor without growing the wordmark (as the app's sign-in page) */
.lgx__brand { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; color: var(--cf-ink); font-family: 'General Sans Headline', 'Geist', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1; text-decoration: none; }
.lgx__inner { width: 100%; max-width: 420px; margin-top: 40px; }
.lgx__title { color: var(--cf-ink); font-family: 'General Sans Headline', 'Geist', sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -.045em; line-height: 1.05; text-wrap: balance; }
.lgx__lead { max-width: 34ch; margin: 12px auto 0; color: var(--cf-text-2); font-size: 16px; line-height: 1.5; text-wrap: pretty; }

/* The one action, in the homepage's lime gradient. The Google mark keeps its own white square. */
.lgx__google { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 28px; padding: 8px 60px; border-radius: 8px; background: var(--cf-grad-lime); color: var(--cf-ink); font-size: 17px; font-weight: 500; line-height: 1.2; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.lgx__google:active { transform: translateY(1px); }
@media (hover: hover) {
  .lgx__google:hover { background: var(--cf-lime-lo); }
}
.lgx__g { position: absolute; top: 50%; left: 7px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; background: #fff; transform: translateY(-50%); }
.lgx__legal { margin-top: 16px; color: var(--cf-text-2); font-size: 13px; line-height: 1.5; text-wrap: balance; }
.lgx__legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.lgx__legal a:hover { color: var(--cf-ink); }

/* ---------- The panel: what happens after you sign in ---------- */
.lgx__panel { display: flex; flex-direction: column; gap: 22px; margin: 0 12px 12px; padding: 30px 18px 22px; border-radius: 28px; background: var(--cf-mist); }
.lgx__head { text-align: center; }
.lgx__h2 { color: var(--cf-ink); font-family: 'General Sans Headline', 'Geist', sans-serif; font-size: 26px; font-weight: 500; letter-spacing: -.04em; line-height: 1.08; text-wrap: balance; }
.lgx__sub { margin-top: 10px; color: var(--cf-text-2); font-size: 15px; line-height: 1.5; text-wrap: balance; }

/* The recap: six things you can do, each with an icon in a soft colour frame, as on the homepage */
.lgx__can { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; list-style: none; text-align: left; }
.lgx__can-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px 16px; border-radius: 18px; background: #fff; }
.lgx__can-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--cf-ink); }
.lgx__can-ico.is-lime { background: linear-gradient(140deg, #f3ffc4 0%, #d1fe17 100%); }
.lgx__can-ico.is-sky, .lgx__can-ico.is-sky2 { background: linear-gradient(140deg, #eaf3ff 0%, #9cc7ff 100%); }
.lgx__can-ico.is-lilac { background: linear-gradient(140deg, #f3efff 0%, #c3b1ff 100%); }
.lgx__can-ico.is-peach { background: linear-gradient(140deg, #fff2e6 0%, #ffb98c 100%); }
.lgx__can-ico.is-mint { background: linear-gradient(140deg, #e6fff4 0%, #8fefc5 100%); }
.lgx__can-text { display: grid; gap: 3px; padding-top: 1px; }
.lgx__can-text b { color: var(--cf-ink); font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.lgx__can-text span { color: var(--cf-text-2); font-size: 14px; line-height: 1.45; text-wrap: pretty; }

/* Proof at the panel foot, as .ik-proof in the homepage hero */
.lgx__proof { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; color: var(--cf-text-2); font-size: 13px; line-height: 1.5; list-style: none; }
.lgx__proof li { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-left: 1px solid var(--cf-field); white-space: nowrap; }
.lgx__proof li:first-child { padding-left: 0; border-left: 0; }
.lgx__proof svg { flex: none; color: var(--cf-ink); }
.lgx__meta { width: 21px; height: 14px; }
.lgx__tp { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; background: #00b67a; }
.lgx__tp svg { color: #fff; }
/* On a phone the three proofs need two lines: the count gets its own, so no divider hangs at a line start */
@media (max-width: 599px) {
  .lgx__proof li:last-child { flex-basis: 100%; justify-content: center; padding-left: 0; border-left: 0; }
}
/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .lgx__form { padding: 32px 40px 88px; }
  .lgx__inner { margin-top: 64px; }
  .lgx__title { font-size: 44px; }
  .lgx__lead { font-size: 17px; }
  .lgx__panel { gap: 26px; margin: 0 16px 16px; padding: 44px 32px 28px; border-radius: 32px; }
  .lgx__h2 { font-size: 34px; }
  .lgx__sub { font-size: 16px; }
  .lgx__can { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lgx__proof { font-size: 14px; }
}

/* ---------- Desktop: sign-in left, panel right, one screen ---------- */
@media (min-width: 1024px) {
  .lgx { display: grid; grid-template-columns: minmax(0, 1fr) clamp(500px, 47vw, 760px); height: 100vh; height: 100dvh; min-height: 680px; }
  /* One centre line for wordmark and sign-in: a centred wordmark over left-aligned text read as random (Vytas, 2026-11-03) */
  .lgx__form { align-items: stretch; height: 100%; padding: 32px clamp(40px, 5vw, 80px); text-align: center; }
  /* Centred over the sign-in column and small (Vytas, 2026-11-03: "logo too big and should be center") */
  /* The negative margins give the touch box's growth back, so the wordmark stays 32px from the top */
  .lgx__brand { align-self: center; margin-block: -13.5px; font-size: 13px; letter-spacing: .02em; }
  /* margin: auto centres the sign-in in the space under the wordmark */
  .lgx__inner { max-width: 420px; margin: auto; }
  .lgx__title { font-size: clamp(40px, 3.3vw, 50px); }
  .lgx__lead { max-width: 34ch; margin: 16px auto 0; font-size: 17px; }
  .lgx__google { margin-top: 32px; }
  .lgx__legal { text-wrap: pretty; }

  .lgx__panel { height: calc(100% - 24px); min-height: 0; margin: 12px 12px 12px 0; padding: clamp(28px, 4.4vh, 44px) clamp(32px, 3.4vw, 56px) clamp(22px, 3vh, 30px); }
  .lgx__head { text-align: left; }
  .lgx__h2 { font-size: clamp(30px, 2.5vw, 40px); }
  .lgx__sub { margin-top: 10px; }
  /* The heading and list stay together in the middle of the panel; the proof row sits at its foot */
  .lgx__head { margin-top: auto; }
  .lgx__can { margin-bottom: auto; }
  .lgx__h2 { max-width: 15em; }
}
/* Narrow desktops: the proof row needs a smaller size to stay on one line */
@media (min-width: 1024px) and (max-width: 1439px) {
  .lgx__proof { font-size: 13px; }
  .lgx__proof li { gap: 6px; padding: 0 10px; }
}
@media (min-width: 1024px) and (max-width: 1150px) {
  .lgx__proof li:last-child { flex-basis: 100%; justify-content: center; padding-left: 0; border-left: 0; }
}
/* Narrow desktops: the icon sits above the words, so each line gets the tile's full width */
@media (min-width: 1024px) and (max-width: 1199px) {
  .lgx__can-item { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .lgx__can-ico { width: 34px; height: 34px; border-radius: 10px; }
  .lgx__can-ico svg { width: 18px; height: 18px; }
}
/* Short screens: tighter tiles so the panel still fits one screen */
@media (min-width: 1024px) and (max-height: 760px) {
  .lgx__panel { gap: 18px; }
  .lgx__can-item { padding: 11px 14px; }
  .lgx__can-text span { font-size: 13.5px; line-height: 1.4; }
}

/* ---------- Motion: once, on load. The final state is the default, so reduced motion shows the finished page. ---------- */
@keyframes lgx-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lgx-pop { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .lgx__inner > * { animation: lgx-up .7s var(--ease-out) both; }
  .lgx__inner > :nth-child(2) { animation-delay: .05s; }
  .lgx__inner > :nth-child(3) { animation-delay: .1s; }
  .lgx__inner > :nth-child(4) { animation-delay: .15s; }
  .lgx__can-item { animation: lgx-pop .7s var(--ease-out) both; }
  .lgx__can-item:nth-child(2) { animation-delay: .04s; }
  .lgx__can-item:nth-child(3) { animation-delay: .08s; }
  .lgx__can-item:nth-child(4) { animation-delay: .12s; }
  .lgx__can-item:nth-child(5) { animation-delay: .16s; }
  .lgx__can-item:nth-child(6) { animation-delay: .2s; }
}
@media (prefers-reduced-motion: reduce) {
  .lgx__google { transition: none; }
}

/* ---------- 2026-11-20: the panel is a glance, as on the app's sign-in page ----------
   Copied from cr-app-revamp login/index.html (13 Nov, owner: "login is way too heavy with text").
   The panel held six tiles, each a name and one or two sentences: 874px tall on a phone under the
   sign-in block. The names stay and the sentences go: the heading, one line, six small labelled
   tiles, the proof row. Look only: no link, button or script is touched.
   Kept last in this sheet so it outranks the tile rules above at every width. */
.lgx__can-text span { display: none; }
.lgx__can { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lgx__can-item { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 12px; }
.lgx__can-ico { width: 26px; height: 26px; border-radius: 8px; }
.lgx__can-ico svg { width: 15px; height: 15px; }
/* The line the name sits on is the app's body line (15px/1.5 on phones, 14px from 861px), so the name centres on the icon as it does there */
.lgx__can-text { display: block; padding-top: 0; font-size: 15px; line-height: 1.5; }
.lgx__can-text b { font-size: 13.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.lgx__panel { gap: 18px; padding-top: 26px; }
@media (min-width: 861px) {
  .lgx__can-text { font-size: 14px; }
}
@media (min-width: 1024px) {
  .lgx__can { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lgx__can-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; padding: 12px 14px; border-radius: 16px; }
  .lgx__can-ico { width: 36px; height: 36px; border-radius: 11px; }
  .lgx__can-ico svg { width: 19px; height: 19px; }
  .lgx__can-text b { font-size: 15px; }
  .lgx__panel { gap: 24px; }
}
