:root {
  --page-bg: #ffffff;
  --text-main: #0b0b0f;
  --text-muted: #6d6e73;
  --field-bg: #f4f5f7;
  --brand-green: #12a538;
  --brand-green-dark: #0f9933;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  font-family: "Inter", sans-serif;
  color: var(--text-main);
}

body {
  display: flex;
  justify-content: center;
}

.screen {
  width: min(100%, 1080px);
  min-height: 100vh;
  padding: 38px 38px 56px;
  background:
    radial-gradient(circle at top center, rgba(7, 161, 67, 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.topbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 92px;
}

.back-button {
  position: absolute;
  left: 0;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
  transform: translateY(-50%);
}

.back-button svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-text {
  color: var(--brand-green);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 196px;
  height: auto;
}

.content {
  padding-top: 94px;
}

h1 {
  margin: 0 0 58px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
}

.field {
  display: block;
}

.field input {
  width: 100%;
  height: 80px;
  padding: 0 25px;
  border: 0;
  border-radius: 15px;
  background: var(--field-bg);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 400;
  outline: none;
}

.field input::placeholder {
  color: #6d6e73;
  opacity: 1;
}

.hint {
  margin: 20px 0 0;
  padding-left: 42px;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1.35;
}

.primary-button {
  width: 100%;
  margin-top: 86px;
  min-height: 124px;
  border: 0;
  border-radius: 31px;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
  color: #ffffff;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(18, 165, 56, 0.18);
}

.primary-button.is-loading::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 14px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: button-spin 0.8s linear infinite;
}

.primary-button:hover {
  filter: brightness(1.02);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

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

.form-status {
  margin: 18px 0 -54px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.35;
}

.form-status[data-state="error"] {
  color: #c5221f;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.hintProverka{
   margin: 20px 0 0;
  padding-left: 42px;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .screen {
    padding: 24px 18px 40px;
  }

  .topbar {
    min-height: 72px;
  }

  .back-button {
    width: 44px;
    height: 44px;
  }

  .back-button svg {
    width: 34px;
    height: 34px;
  }

  .brand-logo {
    width: 156px;
  }

  .content {
    padding-top: 56px;
  }

  h1 {
    margin-bottom: 34px;
  }

  .field input {
        height: 50px;
        padding: 0 24px;
        border-radius: 15px;
        font-size: 16px;
  }

  .hint {
    margin-top: 14px;
    padding-left: 24px;
    font-size: 16.2px;
  }

  .hintProverka{
    margin-top: 14px;
    padding-left: 14px;
    font-size: 13px;
  }

  .primary-button {
    margin-top: 54px;
    min-height: 50px;
    border-radius: 16px;
    font-size: 18px;
  }

  .form-status {
    margin: 12px 0 -34px;
    font-size: 13px;
  }
}


/* ------------------------------------------------- */
