:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202044;
  background: #f4f3fa;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 24px 16px;
  display: grid;
  place-items: center;
}

.card {
  position: relative;
  width: min(100%, 430px);
  padding: 32px 26px 26px;
  overflow: hidden;
  border: 1px solid #e4e2ef;
  border-radius: 22px;
  background: #faf8f9;
  box-shadow: 0 18px 55px rgba(46, 46, 132, 0.11);
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2e2e84 0%, #4545b5 76%, #ff7043 100%);
  content: "";
}

.portrait {
  display: block;
  width: 96px;
  height: 96px;
  border: 3px solid #2e2e84;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 0 0 3px #faf8f9, 0 0 0 5px rgba(255, 112, 67, 0.75);
}

.eyebrow {
  margin: 22px 0 8px;
  color: #656582;
  font-size: 13px;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  color: #2e2e84;
  font-size: clamp(27px, 8vw, 34px);
  line-height: 1.15;
}

.role {
  margin: 9px 0 0;
  color: #656582;
  font-size: 14px;
  line-height: 1.5;
}

.intro {
  margin: 18px 0 22px;
  color: #202044;
  font-size: 16px;
  line-height: 1.5;
}

form { display: grid; gap: 10px; }

label {
  margin-top: 4px;
  color: #202044;
  font-size: 14px;
  font-weight: 650;
}

.optional, .required {
  color: #656582;
  font-weight: 400;
}

input:not([type="hidden"]) {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #d7d5ea;
  border-radius: 11px;
  background: #fff;
  color: #202044;
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:not([type="hidden"]):focus {
  border-color: #2e2e84;
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 46, 132, 0.16);
}

.hint {
  margin: -3px 0 6px;
  color: #656582;
  font-size: 12px;
}

.button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.primary {
  color: #fff;
  background: #2e2e84;
  box-shadow: 0 6px 15px rgba(46, 46, 132, 0.2);
}

.primary:hover { background: #4545b5; }

.primary:active, .secondary:active {
  transform: translateY(1px);
}

.button:focus {
  outline: 3px solid rgba(46, 46, 132, 0.28);
  outline-offset: 3px;
}

.button:focus:not(:focus-visible) { outline: none; }

.actions { display: grid; gap: 11px; }

.secondary {
  border: 1px solid #d7d5ea;
  color: #2e2e84;
  background: #fff;
}

.secondary:hover {
  border-color: #2e2e84;
  background: #f4f3fa;
}

.error {
  margin: 0 0 4px;
  color: #a12e35;
  font-size: 14px;
}

.privacy-note {
  margin: 18px 0 0;
  color: #656582;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 380px) {
  body { padding: 16px 12px; }

  .card {
    padding: 28px 20px 22px;
    border-radius: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  input:not([type="hidden"]), .button { transition: none; }
}
