/* Registration page base styles intentionally mirror the site's dark theme. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: #fff;
  background: #000;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

#particles {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: #000;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgb(255 255 255 / 35%);
  transition: transform 0.3s linear;
}

.registration-layout {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.registration-card {
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 28px;
  background: rgb(12 12 12 / 92%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}

.eyebrow {
  margin-bottom: 1rem;
  color: rgb(255 255 255 / 50%);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.registration-card h1 {
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.login-card {
  max-width: 620px;
  margin-inline: auto;
}

.registration-intro {
  max-width: 520px;
  margin-top: 1rem;
  color: rgb(255 255 255 / 65%);
  line-height: 1.6;
}

/* The summary makes every server-side validation problem visible in one place. */
.form-errors {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgb(248 113 113 / 45%);
  border-radius: 14px;
  color: #fecaca;
  background: rgb(127 29 29 / 28%);
}

.form-errors h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-errors ul {
  padding-left: 1.25rem;
}

.form-errors a {
  color: inherit;
}

.registration-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.required-note,
.field-hint {
  color: rgb(255 255 255 / 50%);
  font-size: 0.85rem;
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 650;
}

.form-field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  outline: none;
  color: #fff;
  background: rgb(255 255 255 / 6%);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  border-color: rgb(255 255 255 / 75%);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 12%);
}

.form-field input[aria-invalid="true"] {
  border-color: #f87171;
}

.field-error {
  color: #fca5a5;
  font-size: 0.88rem;
}

.submit-button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 999px;
  color: #000;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.submit-button:focus-visible {
  outline: 3px solid rgb(255 255 255 / 45%);
  outline-offset: 3px;
}

.form-switch {
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 58%);
  text-align: center;
}

.form-switch a {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 520px) {
  .registration-layout {
    padding-inline: 1rem;
  }

  .registration-card {
    border-radius: 20px;
  }
}
