.password-page {
  min-height: calc(100vh - 180px);
  background:
    radial-gradient(circle at 85% 5%, rgba(15, 159, 120, 0.12), transparent 30rem),
    var(--color-background, #f7faf8);
}

.password-hero {
  padding: clamp(52px, 9vw, 100px) 0;
}

.password-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 28px;
  max-width: 1040px;
}

.password-shell-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.password-card,
.password-help {
  border: 1px solid var(--color-border, #dfe9e4);
  background: var(--color-surface, #fff);
  box-shadow: 0 24px 60px rgba(21, 45, 36, 0.08);
}

.password-card {
  padding: clamp(28px, 6vw, 52px);
  border-radius: 28px;
}

.password-help {
  padding: 26px;
  border-radius: 20px;
}

.password-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 18px;
  background: #eaf8f3;
  font-size: 1.6rem;
}

.password-card h1 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.password-intro {
  margin: 0 0 30px;
  color: var(--color-text-muted, #596760);
  font-size: 1.06rem;
  line-height: 1.7;
}

.password-help h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.password-help p {
  color: var(--color-text-muted, #596760);
  line-height: 1.65;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  font-weight: 750;
}

.form-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--color-border, #cad9d1);
  border-radius: 13px;
  background: #fff;
  color: var(--color-text, #17231e);
  font: inherit;
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-primary, #0f9f78);
  box-shadow: 0 0 0 4px rgba(15, 159, 120, 0.13);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 92px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--color-primary-dark, #08785a);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 20px;
  border: 1px solid var(--color-primary, #0f9f78);
  border-radius: 14px;
  background: var(--color-primary, #0f9f78);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: password-spin 700ms linear infinite;
}

.primary-action.is-loading .button-spinner {
  display: block;
}

.form-message {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 13px;
  line-height: 1.55;
}

.form-message.is-error {
  border: 1px solid #efc2bd;
  background: #fff3f1;
  color: #8f1d14;
}

.form-message.is-success,
.form-message.is-info {
  border: 1px solid #b9dbd0;
  background: #effaf6;
  color: #16624d;
}

.password-footer-link {
  margin: 22px 0 0;
  text-align: center;
}

.password-footer-link a,
.inline-link {
  color: var(--color-primary-dark, #08785a);
  font-weight: 700;
  text-underline-offset: 3px;
}

.reset-success {
  padding: 26px;
  border: 1px solid #b9dbd0;
  border-radius: 18px;
  background: #effaf6;
  text-align: center;
}

.reset-success > span {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #08785a;
  font-size: 1.5rem;
  font-weight: 900;
}

.reset-success h2 {
  margin: 0 0 10px;
}

.reset-success p {
  margin: 0 0 20px;
  color: #356355;
  line-height: 1.6;
}

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

@media (max-width: 820px) {
  .password-shell {
    grid-template-columns: 1fr;
  }
}
