/* Personal account: the sign-in page (27 Nov 2026, third take; no password since 28 Nov: Apple or a code).
   The whole page is the relief (the hero's, by theme). The form sits in a card in the middle, with plain fields
   (the label above, the field 46 px high). Under the card, one quiet row says what the account gives. */
.acc-body { background: var(--paper); }
.acc {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: 18px max(var(--gutter), env(safe-area-inset-right, 0px)) 22px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--paper) url(hero-relief-dark.jpg?v=b845de8c) center / cover no-repeat;
}
:root[data-theme="light"] .acc { background-image: url(hero-relief-light.jpg?v=683e3a52); }
@media (min-width: 720px) { .acc { padding-inline: 48px; } }
.acc-side { display: contents; }

.acc-top { display: flex; align-items: center; gap: 12px; }
/* the static wordmark, as in the site's footer: no animation in the account (Igor, 28 Nov 2026), in the place and
   size of the animated logo's word (the numbers are explained in cabinet.css) */
.acc-top .mark { --h: 53px; height: var(--h); align-items: flex-end; }
.acc-top .mark .wordmark { display: block; height: calc(var(--h) * 100 / 222); width: auto; aspect-ratio: 4989 / 1000; margin: 0 0 calc(var(--h) * 8 / 222) calc(var(--h) * 10.5 / 222); fill: currentColor; }
.acc-top .mark .wordmark .dot { fill: var(--lift); }
@media (max-width: 400px) { .acc-top .mark { --h: 42px; } }
.acc-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.acc-tools .langs summary { font-size: 0.9rem; color: var(--nav-text); }
.acc-main { flex: 1; display: grid; align-content: center; justify-items: center; gap: 28px; padding-block: 40px; }

/* the card */
.acc-form {
  width: 100%; max-width: 420px; display: grid; gap: 14px;
  padding: 32px 32px 26px; border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 93%, transparent); border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.acc-form[hidden] { display: none; }
.acc-form h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 2rem + 1.6vw, 3.1rem); line-height: 0.95; letter-spacing: -0.01em; }
.acc-sub { color: var(--muted); margin: -4px 0 8px; font-size: 1rem; }
.acc-field { display: grid; gap: 6px; }
.acc-field label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.acc-field input {
  display: block; width: 100%; height: 46px; margin: 0; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink);
  font: 500 1rem var(--body); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.acc-field input:hover { border-color: color-mix(in srgb, var(--ink) 28%, var(--rule)); }
.acc-field input:focus { border-color: var(--lift); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lift) 20%, transparent); }
.acc-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 0.95rem; }
.acc-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--lift); }
.acc-link { color: var(--lift-ink); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.acc-link:hover { text-decoration: underline; color: var(--lift-ink); }
.acc-go {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 4px;
  border: 0; border-radius: 99px; background: var(--lift); color: #fff; font: 700 1.05rem/1 var(--body); cursor: pointer;
  transition: background-color 0.25s ease;
}
.acc-go:hover { background: color-mix(in srgb, var(--lift) 86%, #000); }
:root[data-theme="dark"] .acc-go:hover { background: color-mix(in srgb, var(--lift) 86%, #fff); }
/* Apple first (black, white in the dark theme), then «or with a code by email» between two thin lines */
.acc-apple {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px;
  border: 0; border-radius: 99px; background: #000; color: #fff; font: 600 1.02rem/1 var(--body); cursor: pointer;
}
.acc-apple svg { width: 19px; height: 19px; margin-top: -3px; fill: currentColor; }
.acc-apple:hover { background: #1d1d1f; }
:root[data-theme="dark"] .acc-apple { background: #fff; color: #000; }
:root[data-theme="dark"] .acc-apple:hover { background: #e8e8ed; }
/* Sign in with Google: Google's own colours for its button (white with a grey rim, dark with a lighter rim), our capsule */
.acc-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px;
  border: 1px solid #747775; border-radius: 99px; background: #fff; color: #1f1f1f; font: 600 1.02rem/1 var(--body); cursor: pointer;
}
.acc-google svg { width: 18px; height: 18px; flex: none; }
.acc-google:hover { background: #f2f2f2; }
:root[data-theme="dark"] .acc-google { border-color: #8e918f; background: #131314; color: #e3e3e3; }
:root[data-theme="dark"] .acc-google:hover { background: #202124; }
.acc-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.acc-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 4px -4px; padding: 4px;
  border: 0; background: none; color: var(--muted); font: 600 0.95rem var(--body); cursor: pointer;
}
.acc-back:hover { color: var(--ink); }
.acc-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the code: one field over six cells */
.acc-cells { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.acc-cells span {
  display: grid; place-items: center; height: 56px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper);
  font: 700 1.6rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink);
}
.acc-cells span.on { border-color: var(--lift); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lift) 20%, transparent); }
.acc-cells input {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: none;
  background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 3em; cursor: text;
}
.acc-cells input::selection { background: transparent; }
.acc-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--muted); font-size: 0.85rem; }
.acc-again { padding: 0; border: 0; background: none; color: var(--lift-ink); font: 700 0.85rem var(--body); cursor: pointer; }
.acc-again:disabled { color: var(--muted); font-weight: 500; cursor: default; }
.acc-go:disabled, .acc-apple:disabled, .acc-google:disabled { opacity: 0.6; cursor: default; }
.acc-apple[hidden], .acc-google[hidden], .acc-or[hidden] { display: none; }
.acc-status { font-size: 0.9rem; color: var(--lift-ink); font-weight: 700; text-align: center; }
.acc-status:empty { display: none; }
.acc-new { text-align: center; color: var(--muted); font-size: 0.95rem; }

/* what the account gives: three columns of plain text, thin rules between them, no boxes */
.acc-what { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 460px; }
.acc-what li { display: grid; align-content: start; justify-items: center; text-align: center; gap: 2px; padding: 2px 16px; }
.acc-what li + li { border-left: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.acc-what svg { width: 22px; height: 22px; margin-bottom: 6px; fill: none; stroke: var(--lift); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc-what b { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.acc-what span { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }

.acc-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 0.85rem; color: var(--muted); }
.acc-foot a { color: var(--muted); text-decoration: none; }
.acc-foot a:hover { color: var(--ink); }

/* phone: the card edge to edge less a margin, the row under it as a list */
@media (max-width: 599px) {
  .acc-main { padding-block: 28px 32px; gap: 24px; }
  .acc-form { padding: 24px 20px 20px; }
  .acc-what { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 420px; }
  .acc-what li { grid-template-columns: 28px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 12px; padding: 0 4px; }
  .acc-what li + li { border-left: 0; }
  .acc-what svg { grid-row: span 2; margin: 2px 0 0; }
  }
