/*
 * terraloc.app/watch: one field and one button, where the code an Apple
 * Watch shows is typed. The page head and the button are the kit's
 * (tl-ui.css); this is the card, the field and the answer under it.
 */

.tl-watch {
  padding: 3rem 1rem 4rem;
}

.tl-watch-wrap {
  max-width: 34rem;
  margin: 0 auto;
}

.tl-watch-card {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border: 1px solid var(--tl-hairline, #DFDCCB);
  border-radius: 10px;
  background: var(--tl-panel, #FAF9F4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.tl-watch-card p {
  margin: 0;
  color: var(--tl-ink, #23281F);
}

.tl-watch-label {
  font-family: var(--tl-font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tl-dim, #8B8F80);
}

/* The code as the watch shows it: mono, wide, upper case. */
.tl-watch-code {
  width: 100%;
  max-width: 16rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--tl-hairline-strong, #C9C5B2);
  border-radius: 8px;
  background: var(--tl-white, #FFFFFF);
  color: var(--tl-ink, #23281F);
  font-family: var(--tl-font-mono, ui-monospace, monospace);
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.tl-watch-code:focus-visible {
  outline: 2px solid var(--tl-accent, #46603C);
  outline-offset: 2px;
}

.tl-watch-msg {
  min-height: 1.4em;
  font-size: 0.95rem;
}

.tl-watch-msg.is-ok {
  color: var(--tl-success, #1F7A47);
}

.tl-watch-msg.is-error {
  color: var(--tl-danger, #A32219);
}

.tl-watch-hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--tl-muted, #5C6253);
}
