body {
  font-family: system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #f5f5f5;
}

h1 {
  font-size: 2rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

a.button {
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  text-align: center;
  min-width: 160px;
}

a.blue { background: #2563eb; }
a.blue:hover { background: #1d4ed8; }

a.green { background: #16a34a; }
a.green:hover { background: #15803d; }

.login-button {
  margin-top: 50px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 220px;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.primary-btn {
  margin-top: 10px;
  margin-bottom: 50px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: orange;
  color: black;
  cursor: pointer;
  width: 220px;
}

.back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.back-btn:hover {
  text-decoration: underline;
}

.error-text {
  color: #dc2626;
  font-size: 0.9rem;
  margin-top: 6px;
  min-height: 1em; /* prevents layout jump */
}

.link-button {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  color: white;
  font-weight: 500;
  margin-bottom: 50px;
}

/* variants */
.link-button.blue {
  background: #2563eb;
}

.link-button.blue:hover {
  background: #1d4ed8;
}

.link-button.green {
  background: #16a34a;
}

.link-button.green:hover {
  background: #15803d;
}

.stack {
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}