:root {
  --color-background: #f0fdfa;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-muted: #59636f;
  --color-accent: #0d9488;
  --color-accent-hover: #0f766e;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-background);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.card {
  width: min(100%, 28rem);
  padding: 2.5rem;
  border: 1px solid #d8d5cc;
  border-radius: 1rem;
  background: var(--color-surface);
  box-shadow: 0 1rem 3rem rgb(24 33 29 / 8%);
}

.card-wide {
  width: min(100%, 52rem);
}

.brand {
  display: inline-block;
  width: min(12rem, 65%);
  margin-bottom: 1.75rem;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

h2 {
  margin: 2rem 0 0.75rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid #d8d5cc;
  text-align: left;
}

.eyebrow {
  margin: 0;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}

p {
  color: var(--color-muted);
  line-height: 1.6;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
}

.alert-error {
  color: #7a1f1f;
  background: #fbeaea;
}

.alert-success {
  color: #175a43;
  background: #e6f5ef;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  margin-top: 0.5rem;
  font-weight: 650;
}

input {
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #aeb6b0;
  border-radius: 0.5rem;
  font: inherit;
}

.field-hint,
.secondary-link {
  margin: 0;
  font-size: 0.875rem;
}

.secondary-link {
  margin-top: 1.25rem;
  text-align: center;
}

.secondary-link a {
  color: var(--color-accent);
}

.account-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0;
}

.account-details dt {
  color: var(--color-muted);
  font-weight: 650;
}

.account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

button,
.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  color: white;
  background: var(--color-accent);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--color-accent-hover);
}

.button-secondary {
  color: var(--color-text);
  background: #e5e3dc;
}

.button-secondary:hover {
  background: #d7d4ca;
}
