.auth-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  padding: 82px 20px 100px;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(1, 162, 0, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 94% 86%,
      rgba(1, 162, 0, 0.09),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #f4fff5 0%,
      #ffffff 48%,
      #f7faf7 100%
    );
}

.auth-page::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(
      rgba(1, 162, 0, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(1, 162, 0, 0.05) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 94%);
}

.auth-page .background-decoration {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.auth-page .background-decoration-one {
  top: -210px;
  right: -190px;
  width: 510px;
  height: 510px;
  border: 1px solid rgba(1, 162, 0, 0.12);
  box-shadow:
    0 0 0 75px rgba(1, 162, 0, 0.024),
    0 0 0 150px rgba(1, 162, 0, 0.016);
}

.auth-page .background-decoration-two {
  bottom: -250px;
  left: -220px;
  width: 570px;
  height: 570px;
  border: 1px solid rgba(1, 162, 0, 0.1);
  box-shadow:
    0 0 0 85px rgba(1, 162, 0, 0.02),
    0 0 0 170px rgba(1, 162, 0, 0.013);
}

.auth-container {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr);
  align-items: center;
  gap: clamp(55px, 8vw, 100px);
  margin: 0 auto;
}

.auth-introduction h1 {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.99;
}

.auth-introduction > p {
  max-width: 650px;
  margin-bottom: 38px;
  font-size: 1.05rem;
  line-height: 1.82;
}

.auth-benefits {
  display: grid;
  gap: 18px;
}

.auth-benefit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.auth-benefit-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-benefit h2 {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.auth-benefit p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.auth-card {
  padding: 34px;
  border: 1px solid rgba(1, 162, 0, 0.18);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(18px);
}

.auth-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.auth-card-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--primary-dark) 58%,
      var(--primary-deep) 100%
    );
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 800;
  box-shadow: 0 13px 30px rgba(1, 162, 0, 0.2);
}

.auth-card-header h2 {
  color: var(--text);
  font-size: 1.36rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.auth-card-header p {
  margin-top: 3px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-message {
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
}

.form-message-error {
  border-color: rgba(198, 40, 40, 0.2);
  background: var(--danger-soft);
  color: var(--danger);
}

.form-message-success {
  border-color: rgba(1, 162, 0, 0.2);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.form-group {
  margin-bottom: 19px;
}

.form-group label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.form-group input::placeholder {
  color: #9ca59f;
}

.form-group input:hover {
  border-color: rgba(1, 162, 0, 0.26);
}

.form-group input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(1, 162, 0, 0.09);
}

.form-group input.has-error,
.terms-row input.has-error {
  border-color: rgba(198, 40, 40, 0.65);
}

.form-group input:disabled,
.terms-row input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 11px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--primary-soft);
}

.field-help {
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.field-error {
  min-height: 0;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
}

.field-error:empty {
  display: none;
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.terms-row input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  accent-color: var(--primary);
}

.terms-row label {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.terms-row a {
  color: var(--primary-dark);
  font-weight: 700;
}

.terms-row a:hover {
  text-decoration: underline;
}

.submit-button {
  width: 100%;
  margin-top: 24px;
  position: relative;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-spin 0.75s linear infinite;
}

.submit-button.is-loading .button-spinner {
  display: inline-block;
}

.auth-switch {
  margin-top: 23px;
  text-align: center;
  font-size: 0.83rem;
}

.auth-switch a {
  color: var(--primary-dark);
  font-weight: 700;
}

.auth-switch a:hover {
  text-decoration: underline;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .auth-introduction {
    text-align: center;
  }

  .auth-introduction h1,
  .auth-introduction > p {
    margin-right: auto;
    margin-left: auto;
  }

  .auth-benefits {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding: 55px 16px 72px;
  }

  .auth-introduction h1 {
    font-size: clamp(2.8rem, 14vw, 4.1rem);
  }

  .auth-introduction > p {
    font-size: 0.96rem;
  }

  .auth-card {
    padding: 26px 20px;
    border-radius: 23px;
  }

  .auth-card-header {
    align-items: flex-start;
  }

  .auth-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }
}