:root {
  color-scheme: light;
  --bg: #fff8eb;
  --card: #ffffff;
  --text: #211b18;
  --muted: #83776f;
  --border: #efe1d5;
  --primary: #2d7ec2;
  --primary-dark: #1769ad;
  --accent: #ffd735;
  --shadow: 0 22px 60px rgba(60, 38, 12, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 248, 235, 0.92), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 12% 8%, rgba(255, 215, 53, 0.22), transparent 34%),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

.member-card {
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  background: var(--card);
  overflow: hidden;
}

.hero {
  position: relative;
  background: #fff3dd;
}

.hero__banner {
  display: block;
  width: 100%;
  aspect-ratio: 2.1 / 1;
  object-fit: cover;
}

.hero__brand {
  position: absolute;
  left: 24px;
  bottom: -38px;
  width: 86px;
  height: 86px;
  border: 4px solid #fff;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 27, 24, 0.16);
  overflow: hidden;
}

.hero__brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.member-form {
  display: grid;
  gap: 18px;
  padding: 56px 22px 34px;
}

.member-form__heading {
  display: grid;
  gap: 4px;
}

.member-form__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.member-form__heading h1 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  outline: none;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 700;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder {
  color: #b8aba5;
  font-weight: 700;
}

.field input:focus,
.field select:focus {
  border-color: rgba(45, 126, 194, 0.55);
  box-shadow: 0 0 0 4px rgba(45, 126, 194, 0.1);
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.consent {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #5c514b;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.4;
}

.consent input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--primary);
}

.form-alert {
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.45;
}

.form-alert.is-error {
  display: block;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.form-alert.is-success {
  display: block;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

.submit-button {
  width: min(100%, 320px);
  min-height: 58px;
  justify-self: center;
  border: 0;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(45, 126, 194, 0.26);
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:hover {
  background: var(--primary-dark);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (min-width: 760px) {
  .app-shell {
    padding: 30px 18px;
  }

  .member-card {
    min-height: 0;
    border-radius: 28px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 420px) {
  .member-form {
    gap: 15px;
    padding: 52px 16px 28px;
  }

  .member-form__heading h1 {
    font-size: 27px;
  }

  .hero__brand {
    left: 18px;
    width: 78px;
    height: 78px;
    bottom: -34px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field input,
  .field select {
    height: 56px;
    border-radius: 16px;
  }
}
