* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    linear-gradient(
      135deg,
      #f5f1e8 0%,
      #ffffff 45%,
      #eef2f4 100%
    );

  color: #171717;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.register-card {
  width: 100%;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  padding: 42px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: white;
  font-weight: 800;
  font-size: 20px;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  opacity: 0.55;
}

.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.intro p {
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.section-title {
  margin: 28px 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

.field-help {
  margin-top: 6px;
  font-size: 12px;
  color: #777;
}

.verification {
  margin: 20px 0 8px;
  min-height: 65px;
}

.form-message {
  min-height: 22px;
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

.form-message.error {
  color: #b42318;
}

.form-message.success {
  color: #137333;
}

button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: #111;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.login-link {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
  color: #777;
}

.login-link a {
  color: #111;
  font-weight: 700;
}

@media (max-width: 640px) {
  .register-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

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

  .page {
    padding: 16px;
  }
}
