: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 {
  margin: 0;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #2864d9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #5b6578;
  font-size: 1.05rem;
  line-height: 1.5;
}

.card {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #dce3ef;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(20, 32, 56, 0.08);
}

.auth-card {
  max-width: 520px;
}

.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signed-in-email {
  margin: 4px 0 0;
  color: #172033;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.row-actions label {
  flex: 1 1 360px;
}

label {
  display: grid;
  gap: 7px;
  color: #30394c;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e5;
  border-radius: 14px;
  padding: 12px 14px;
  color: #172033;
  font: inherit;
  font-weight: 500;
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(40, 100, 217, 0.2);
  border-color: #2864d9;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  color: #fff;
  background: #2864d9;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #1f55bd;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

button.secondary {
  border: 1px solid #cbd5e5;
  color: #24415f;
  background: #f8fafc;
}

button.secondary:hover {
  background: #edf3fa;
}

.full-width {
  width: 100%;
}

.hint {
  margin: 0;
  color: #68758a;
  font-size: 0.92rem;
  line-height: 1.45;
}

.status {
  min-height: 24px;
  margin-top: 18px;
  color: #24415f;
  font-weight: 700;
}

.status.error {
  color: #b42318;
}

.status.success {
  color: #067647;
}

@media (max-width: 760px) {
  .two,
  .three {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 20px, 920px);
    padding-top: 24px;
  }

  .card {
    padding: 18px;
  }

  .user-card {
    align-items: stretch;
    flex-direction: column;
  }
}
