/* Accounts (js/accountsheet.js, Nick's side): the sign-in sheet, "Keep your music everywhere", and your
   account in You. Built on v2.css's pieces (.chip, .text-btn, .card-row) and riff-knows.css's You (.rk-sec,
   .rk-h, .rk-line, .rk-acts), in drill.js's sheet: starlight on glass, Geist for anything you tap. The only
   colour is Google's own G, which its sign-in button has to carry. */

/* ---------- the You row: your initial where the figure was ---------- */

.ac-initial {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid color-mix(in srgb, var(--starlight) 45%, transparent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.ac-initial[hidden] {
  display: none;
}

/* ---------- You: Your account above what Riff remembers, Your data below ---------- */

.ac-you {
  display: grid;
  gap: 18px;
  font-size: 14px;
}

.ac-head[hidden],
.ac-foot[hidden] {
  display: none;
}

.ac-head .ac-sec {
  padding-top: 0;
  border-top: 0;
}

.ac-foot {
  display: grid;
  gap: 18px;
}

.ac-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ac-initial-big {
  width: 40px;
  height: 40px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.ac-who-text {
  min-width: 0;
}

.ac-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ac-how {
  margin: 0;
  color: var(--dust);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ac-note {
  color: color-mix(in srgb, var(--starlight) 78%, transparent);
}

.ac-name-form label {
  margin-top: 2px;
}

.ac-ways-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-ways-list li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
}

/* ---------- the sheet ---------- */

.ac-sheet {
  display: grid;
  gap: 14px;
  max-width: 420px;
  font-size: 14px;
}

.ac-adult {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.ac-adult label {
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.ac-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--starlight) 45%, transparent);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ac-check::after {
  content: "";
  width: 11px;
  height: 6px;
  margin-top: -3px;
  border-bottom: 2px solid var(--space);
  border-left: 2px solid var(--space);
  rotate: -45deg;
  opacity: 0;
}

.ac-check:checked {
  border-color: var(--starlight);
  background: var(--starlight);
}

.ac-check:checked::after {
  opacity: 1;
}

.ac-under {
  margin-top: -10px;
}

.ac-ways {
  display: grid;
  gap: 10px;
}

/* Google, Apple and the email code: the same size, one under another. */
.ac-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background-color: color-mix(in srgb, var(--space) 40%, transparent);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--t) ease, border-color var(--t) ease, opacity var(--t) ease, scale var(--t) ease;
}

.ac-btn[aria-disabled="true"] {
  opacity: .5;
}

.ac-btn-primary {
  border-color: var(--starlight);
  background-color: var(--starlight);
  color: var(--space);
}

.ac-btn-danger {
  border-color: color-mix(in srgb, var(--starlight) 55%, transparent);
}

.ac-btn:active:not(:disabled, [aria-disabled="true"]) {
  scale: .98;
}

@media (hover: hover) {
  .ac-btn:hover:not(:disabled, [aria-disabled="true"], .ac-btn-primary) {
    border-color: var(--hair-hi);
    background-color: var(--lift);
  }

  .ac-btn-primary:hover:not(:disabled) {
    background-color: #fff;
  }
}

.ac-logo {
  flex: none;
  width: 18px;
  height: 18px;
}

.ac-logo-apple {
  margin-top: -2px;
}

.ac-small {
  margin: 0;
  color: var(--dust);
  font-size: 13px;
  line-height: 1.45;
}

.ac-small a {
  color: var(--starlight);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--starlight) 40%, transparent);
  text-underline-offset: 3px;
}

.ac-where {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ac-trouble {
  margin: 0;
  color: var(--starlight);
  line-height: 1.45;
}

.ac-good {
  color: var(--starlight);
}

/* the email: your address, then the code */
.ac-form {
  display: grid;
  gap: 10px;
}

.ac-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dust);
}

.ac-form input[type="email"],
.ac-form input#ac-del-in,
.ac-name-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--space) 40%, transparent);
  font-size: 16px; /* 16px or more, so a phone doesn't zoom in */
}

.ac-form input:focus-visible,
.ac-name-form input:focus-visible {
  outline: 2px solid var(--starlight);
  outline-offset: 2px;
}

.ac-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ac-back {
  justify-self: start;
  margin-left: -12px;
}

.ac-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 336px;
  margin: 0;
  padding: 0;
  border: 0;
}

.ac-box {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--starlight) 30%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--space) 40%, transparent);
  font-family: var(--mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  caret-color: var(--starlight);
}

.ac-box:focus-visible {
  border-color: var(--starlight);
  outline: 2px solid var(--starlight);
  outline-offset: 2px;
}

.ac-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: -12px;
}

@media (prefers-reduced-motion: reduce) {
  .ac-btn {
    transition: none;
  }
}
