/* ==================================================
   RUNEGATE SIGN-IN
   --------------------------------------------------
   The screen shown before the builder when nobody is
   signed in, and the small account area in the bar.
================================================== */

/* The builder is hidden until a player is signed in. */
body[data-auth="pending"] .app-bar,
body[data-auth="pending"] .cockpit,
body[data-auth="signed-out"] .app-bar,
body[data-auth="signed-out"] .cockpit {
  display: none;
}

.auth-root {
  display: none;

  min-height: 100vh;
  padding: var(--space-5);

  place-items: center;
}

body[data-auth="pending"] .auth-root,
body[data-auth="signed-out"] .auth-root {
  display: grid;
}

.auth-card {
  width: min(24rem, 100%);
  padding: var(--space-6);

  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-medium);

  background: var(--color-surface);
  color: var(--color-text);

  box-shadow: 0 24px 70px rgb(0 0 0 / 55%);
}

.auth-card__brand {
  margin: 0;

  color: var(--color-amber-bright);

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card__title {
  margin: var(--space-2) 0 var(--space-5);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.auth-card__form {
  display: grid;
  gap: var(--space-4);
}

.auth-card__field {
  display: grid;
  gap: var(--space-1);

  color: var(--color-text-muted);

  font-size: 0.82rem;
}

.auth-card__message {
  min-height: 1.2em;
  margin: 0;

  color: var(--color-text-muted);

  font-size: 0.85rem;
}

.auth-card__message.is-error {
  color: var(--color-ruby-bright);
}

.auth-card__submit {
  padding: 0.45rem var(--space-4);

  border: 1px solid var(--color-amber);
  border-radius: var(--radius-small);

  background: var(--color-amber);
  color: var(--color-surface);

  font-weight: 700;

  cursor: pointer;
}

.auth-card__submit:disabled {
  opacity: 0.6;

  cursor: progress;
}

.auth-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);

  margin: var(--space-5) 0 0;
}

.auth-card__link {
  padding: 0;

  border: 0;

  background: none;
  color: var(--color-lake-bright);

  font-size: 0.85rem;

  cursor: pointer;
}

.auth-card__link:hover,
.auth-card__link:focus-visible {
  color: var(--color-amber-bright);

  text-decoration: underline;
}

/* The signed-in player, with Sign out, in the application bar. */
.app-bar__account {
  display: flex;
  align-items: center;
  gap: var(--space-2);

  min-width: 0;

  color: var(--color-text-muted);

  font-size: 0.75rem;
}

.app-bar__account-email {
  max-width: 11rem;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}
