body {
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
}

/* Sign up header is not sticky */
header {
  position: static;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 0 60px;
}

.card {
  width: min(480px, 100%);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
/* Removed complex before pseudo-element */

.card-inner {
  position: relative;
  padding: 32px 24px;
}

h1 {
  margin: 2px 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
}
.sub {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.notice {
  border: 1px solid var(--brand-light);
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--brand-dark);
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.notice .badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--brand);
  border: 1px solid transparent;
  flex: 0 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input::placeholder {
  color: #9ca3af;
}

.help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.actions .btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
}

.alt {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}
.alt a {
  color: var(--brand);
  font-weight: 500;
}

.legal {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
}
.legal a:hover {
  text-decoration-color: var(--text);
}

/* Devise error box styling */
#error_explanation {
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
#error_explanation h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #991b1b;
  font-weight: 700;
}
#error_explanation ul {
  margin: 0;
  padding-left: 18px;
  color: #b91c1c;
  font-size: 14px;
}
#error_explanation li {
  margin: 4px 0;
}

/* Sign up footer has border-top + different padding */
footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.footer-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
