/* Ledger A - accounts (step 15d): the welcome screen that covers the app until a student signs in,
   and the Account page. Loaded last, after windows.css. */

/* ---------- the welcome screen (sign in) ---------- */
.welcome {
  position: fixed;
  inset: 0;
  z-index: var(--layer-welcome);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-14);
  background: var(--colour-surface-frame);
}
.welcome[hidden] {
  display: none;
}
.welcome__card {
  width: 100%;
  max-width: var(--size-440);
  padding: var(--space-22);
  border-radius: var(--radius-10);
  background: var(--colour-surface-stage);
}
.welcome__title {
  margin: 0;
  font-size: var(--font-size-2xl);
}
.welcome__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.welcome__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
/* The label sits above its box here, so it takes its own width (field labels beside a box have a
   fixed one). */
.welcome__label {
  width: auto;
}
.welcome__submit {
  align-self: flex-start;
}
/* The code typed into six boxes, one digit each (ui/account/code-boxes.js). */
.code-boxes {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.code-boxes__legend {
  padding: 0;
  margin-bottom: var(--space-4);
}
.code-boxes__row {
  display: flex;
  gap: var(--space-8);
}
.code-boxes__box {
  width: var(--size-52);
  min-width: 0; /* text boxes have a wider minimum (forms.css); these hold one digit */
  height: var(--size-52);
  padding: 0;
  text-align: center;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
}

/* The small text buttons under the form ("Forgot password?", "New here? Sign up"). */
.welcome__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-8);
  margin-top: var(--space-6);
}
.welcome__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--colour-text); /* the muted grey is too faint at this small size */
  font-size: var(--font-size-sm);
  text-decoration: underline;
}
.welcome__link:hover {
  text-decoration: none;
}

/* ---------- the Account page ---------- */
.account-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  padding: var(--space-14) var(--space-16);
  border-radius: var(--radius-10);
  background: var(--colour-surface-frame);
}
.account-card__email {
  margin: 0;
}
