/* Account pages in the launcher's look, which is the player's theme: raised cards on the surface, the theme's action
   color for buttons. Each card is one subject; the identity service's own settings are one card that links out. */
.account { max-width: 46rem; display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); padding-block: .6rem 2rem; }
/* Steps that appear later stay hidden, whatever their layout. */
.account [hidden] { display: none !important; }
.account a.play, .account a.button { text-decoration: none; }
#approve { align-items: end; }
.account-head h1 { font: 900 clamp(2.2rem, 5vw, 3.4rem)/1 var(--sw-display); letter-spacing: -.01em; text-transform: uppercase; }
.account-head p { margin-top: .6rem; max-width: 36rem; color: var(--sw-muted); font-size: 1.15rem; }

.card { display: grid; gap: .8rem; padding: clamp(1.1rem, 2.6vw, 1.7rem); border: 1px solid var(--sw-border); border-radius: var(--sw-radius);
  background: var(--sw-raised); color: var(--sw-on-raised); box-shadow: var(--shadow); }
.card h2 { font: 800 1.3rem/1.2 var(--sw-display); letter-spacing: .02em; }
.card p { max-width: 38rem; }
.card.alert { border-left: 6px solid var(--sw-caution); }
.card.centered { justify-items: center; text-align: center; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .5rem 1.4rem;
  border: 2px solid var(--sw-action); border-radius: calc(var(--sw-radius) * .75); background: transparent; color: var(--sw-action);
  font: 800 1rem/1.2 var(--sw-display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.button:hover { background: color-mix(in srgb, var(--sw-action) 14%, transparent); }
.button:disabled, .play:disabled { opacity: .6; cursor: progress; }
.quiet { min-height: 2.75rem; padding: .3rem 0; border: 0; background: none; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.quiet:hover { color: var(--sw-action); text-decoration-thickness: 2px; }
.danger { color: var(--sw-danger); }
.hint { color: var(--sw-muted); }
.status { min-height: 1.4em; color: var(--sw-muted); }

.devices li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0;
  border-top: 1px solid color-mix(in srgb, var(--sw-border) 60%, transparent); }
.devices li:first-child { border-top: 0; }
.devices .what { display: grid; }
.devices small { color: var(--sw-muted); font-size: .95rem; }

.code { font: 700 clamp(1.8rem, 6vw, 2.4rem)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.recovery-code { display: block; padding: .7rem .9rem; border-radius: calc(var(--sw-radius) * .5); background: var(--sw-surface); color: var(--sw-on-surface);
  font: 1rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; }
/* A QR code must keep its light ground to scan, whatever the theme. */
.qr { width: min(15rem, 70vw); aspect-ratio: 1; padding: .6rem; border-radius: calc(var(--sw-radius) * .5); background: white; }
.qr svg { display: block; width: 100%; height: 100%; }
.preview { display: grid; gap: .3rem; padding-left: 1.1rem; list-style: disc; }

.account label { display: block; margin-bottom: .3rem; font-weight: 700; }
.account input[type="text"], .account input:not([type]) { width: 100%; max-width: 22rem; min-height: 2.9rem; padding: .3rem .8rem;
  border: 2px solid var(--sw-border); border-radius: calc(var(--sw-radius) * .6); background: var(--sw-surface); color: var(--sw-on-surface); }

@media (max-width: 46rem) {
  .actions .play, .actions .button { flex: 1 1 100%; }
}
