:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
}

.auth-shell,
.console-shell {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.console-shell {
  padding: 3rem 0;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  width: 100%;
  max-width: 30rem;
  padding: 2rem;
  border: 1px solid #d8e0ec;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(23, 32, 51, 0.08);
}

.console-shell .card {
  max-width: none;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #3159a7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
}

label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-weight: 650;
}

input,
button,
.button-link {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  font: inherit;
}

input {
  border: 1px solid #9cacbf;
  padding: 0.65rem 0.75rem;
}

button {
  margin-top: 1.25rem;
  border: 0;
  padding: 0.65rem 1rem;
  background: #234d9b;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  width: auto;
  margin: 0;
  background: #334155;
}

.button-link {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  background: #234d9b;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.secondary-link {
  background: #334155;
}

.client-list {
  margin-top: 1.5rem;
}

.client {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d8e0ec;
}

.client dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
}

.client dt {
  font-weight: 700;
}

.client dd {
  margin: 0;
}

.credential {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f4f7fb;
}

.message {
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.error {
  background: #fee2e2;
  color: #991b1b;
}

.success {
  background: #dcfce7;
  color: #166534;
}

.status-grid,
.status-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-grid .card {
  padding: 1.25rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  padding: 0.65rem;
  border-bottom: 1px solid #d8e0ec;
  text-align: left;
  vertical-align: top;
}
