:root {
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", system-ui, sans-serif;
  color: #241632;
  background: #f5effc;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
a { color: #583486; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #7853b1; outline-offset: 4px; }

.site-header, .page { width: min(100% - 40px, 640px); margin-inline: auto; }
.site-header, .page-wide { width: min(100% - 40px, 1056px); }
.site-header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header img { display: block; }
.site-header .text-link { font-size: .9rem; }
.page { padding: clamp(16px, 5vh, 56px) 0 48px; }
.text-link { text-underline-offset: 4px; }

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  border: 1px solid #e0d4eb;
  border-radius: 28px;
  overflow: hidden;
  background: #fffcff;
}
.signup-panel, .card { padding: clamp(26px, 5vw, 64px); }
.signup-panel { align-self: center; }
.card {
  border: 1px solid #e0d4eb;
  border-radius: 24px;
  background: #fffcff;
}
.signup-art {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 650px;
  min-height: 100%;
  object-fit: cover;
  object-position: center 38%;
  background: #38294b;
}
.environment {
  margin: 0 0 16px;
  color: #654488;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.6vw, 4.25rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.card h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.intro { margin: 18px 0 28px; color: #594a67; }

form { display: grid; gap: 10px; }
label { font-size: .92rem; font-weight: 650; }
input, button, .button { font: inherit; }
input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #9886a8;
  border-radius: 10px;
  padding: 10px 14px;
  color: inherit;
  background: white;
}
input[aria-invalid="true"] { border-color: #a3274a; }
button, .button {
  display: inline-flex;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  color: #fff;
  background: #2f1e44;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: #4d326a; }
button:disabled { opacity: .68; cursor: wait; }
.secondary { background: transparent; color: #3c2850; border-color: #9886a8; }
.secondary:hover { background: #efe7f8; }
.form-message { margin: 0; color: #584a64; font-size: .9rem; }
.form-message:empty { margin: -10px 0 0; }
.form-message[data-error] { color: #952643; }
.privacy-note { margin: 20px 0 0; color: #5c4e67; font-size: .84rem; }
.privacy-note a { display: inline-block; margin-top: 4px; text-underline-offset: 3px; }
.signup-success { padding: 16px 18px; border-radius: 12px; background: #eee6f8; }
.signup-success p { margin: 0; }
.signup-success .success-label { margin-bottom: 2px; font-size: 1.15rem; font-weight: 700; }

.admin-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.admin-header .intro { margin-bottom: 4px; }
.admin-card > .button { margin-top: 18px; }
.admin-card table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: .9rem; }
.admin-card th, .admin-card td { padding: 10px 8px; border-bottom: 1px solid #e3d9ed; text-align: left; }
.admin-card tbody th { overflow-wrap: anywhere; }
.empty-state { margin: 20px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 720px) {
  .site-header { min-height: 56px; }
  .page-wide { padding: 10px 0 20px; }
  .signup-layout { grid-template-columns: 1fr; border-radius: 22px; }
  .signup-panel { padding: 20px 24px; }
  .signup-panel .environment { margin-bottom: 10px; }
  .signup-panel h1 { font-size: clamp(1.9rem, 8.2vw, 2.15rem); }
  .signup-panel .intro { margin: 14px 0 20px; font-size: .9375rem; line-height: 1.45; }
  .signup-panel form { gap: 8px; }
  .signup-panel input { min-height: 48px; }
  .signup-panel button { min-height: 46px; }
  .signup-panel .form-message:empty { margin-top: -8px; }
  .signup-panel .privacy-note { margin-top: 14px; line-height: 1.45; }
  .signup-art {
    height: clamp(200px, 30svh, 260px);
    min-height: 0;
    max-height: none;
    object-position: center top;
  }
}

@media (max-width: 380px) {
  .site-header, .page { width: calc(100% - 28px); }
  .signup-panel, .card { padding: 18px 20px; }
}

@media (max-width: 720px) and (max-height: 700px) {
  .site-header { min-height: 48px; }
  .page-wide { padding: 6px 0 12px; }
  .signup-panel { padding-block: 16px; }
  .signup-panel .intro { margin-block: 10px 16px; }
  .signup-panel .privacy-note { margin-top: 10px; }
  .signup-art { height: 200px; }
}
