@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body.registration-page {
  min-height: 100vh;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: #172033;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.9), rgba(239, 246, 255, 0.95)),
    #f6f7fb;
}

.registration-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.registration-header {
  margin: 0 0 0.85rem;
}

.registration-header h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.registration-header p {
  margin: 0.35rem 0 0;
  color: #526071;
  font-size: 0.98rem;
  line-height: 1.45;
}

.registration-card {
  padding: clamp(1rem, 2.6vw, 1.35rem);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
}

.required-note {
  margin: 0 0 0.7rem;
  color: #667085;
  font-size: 0.84rem;
  text-align: right;
}

.registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem 0.85rem;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.28rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.required-marker {
  color: #d9480f;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cdd6e3;
  border-radius: 7px;
  background: #fbfcff;
  color: #111827;
  font: inherit;
  font-size: 0.96rem;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field input {
  min-height: 42px;
  padding: 0.58rem 0.7rem;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
  padding: 0.62rem 0.7rem;
}

.field input:focus,
.field textarea:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.field textarea::placeholder {
  color: #8a95a5;
}

.field-help {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

button,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.6rem 1rem;
  background: #0b63ce;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

button:hover,
.button:hover {
  background: #084fa8;
}

.secondary {
  border-color: #cdd6e3;
  background: #ffffff;
  color: #0b63ce;
}

.secondary:hover {
  border-color: #0b63ce;
  background: #eff6ff;
  color: #084fa8;
}

.error {
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff1f2;
  color: #b91c1c;
  padding: 0.48rem 0.58rem;
  font-size: 0.88rem;
}

.error ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.error--form {
  margin-top: 0.85rem;
}

@media (max-width: 640px) {
  body.registration-page {
    padding: 0.75rem;
  }

  .registration-header {
    margin-bottom: 0.65rem;
  }

  .registration-card {
    padding: 0.85rem;
  }

  .required-note {
    margin-bottom: 0.55rem;
    text-align: left;
  }

  .registration-grid {
    grid-template-columns: 1fr;
    gap: 0.58rem;
  }

  .field label {
    font-size: 0.86rem;
  }

  .field input {
    min-height: 39px;
    padding: 0.5rem 0.62rem;
  }

  .field textarea {
    min-height: 74px;
    padding: 0.52rem 0.62rem;
  }

  .actions {
    gap: 0.5rem;
    margin-top: 0.8rem;
  }

  button,
  .button {
    min-height: 39px;
    padding: 0.52rem 0.82rem;
  }
}
