.password-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 90px 20px 110px;
  background:
    radial-gradient(
      circle at 10% 12%,
      rgba(1, 162, 0, 0.14),
      transparent 31%
    ),
    radial-gradient(
      circle at 90% 86%,
      rgba(1, 162, 0, 0.09),
      transparent 33%
    ),
    linear-gradient(
      145deg,
      #f4fff5 0%,
      #ffffff 48%,
      #f7faf7 100%
    );
}

.password-page::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.34;
  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%
  );
}

.background-decoration {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.background-decoration-one {
  top: -220px;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(1, 162, 0, 0.13);
  box-shadow:
    0 0 0 75px rgba(1, 162, 0, 0.024),
    0 0 0 150px rgba(1, 162, 0, 0.016);
}

.background-decoration-two {
  bottom: -260px;
  left: -220px;
  width: 580px;
  height: 580px;
  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);
}

.password-container {
  width: min(100%, 560px);
  margin: 0 auto;
}

.password-card {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border: 1px solid rgba(1, 162, 0, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(18px);
}

.password-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -110px;
  bottom: -150px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: rgba(1, 162, 0, 0.045);
}

.password-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border-radius: 22px;
  background:
    linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--primary-dark) 62%,
      var(--primary-deep) 100%
    );
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: var(--shadow-green);
}

.password-card h1 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.03;
}

.password-introduction {
  margin-bottom: 28px;
  font-size: 0.97rem;
  line-height: 1.75;
}

.form-message {
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.6;
}

.form-message-success {
  border-color: rgba(1, 162, 0, 0.2);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.form-message-error {
  border-color: rgba(198, 40, 40, 0.2);
  background: var(--danger-soft);
  color: var(--danger);
}

.form-group {
  margin-bottom: 20px;
}

.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: 51px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  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 {
  border-color: rgba(198, 40, 40, 0.65);
}

.form-group input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.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;
}

.submit-button {
  position: relative;
  width: 100%;
  margin-top: 4px;
}

.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;
}

.password-footer {
  margin-top: 24px;
  text-align: center;
}

.password-footer a {
  color: var(--primary-dark);
  font-size: 0.83rem;
  font-weight: 700;
}

.password-footer a:hover {
  text-decoration: underline;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .password-page {
    align-items: flex-start;
    padding: 58px 16px 76px;
  }

  .password-card {
    padding: 36px 21px;
    border-radius: 24px;
  }

  .password-icon {
    width: 64px;
    height: 64px;
    border-radius: 19px;
    font-size: 1.5rem;
  }

  .password-card h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .password-introduction {
    font-size: 0.93rem;
  }
}