.account-main {
  min-height: calc(100vh - 76px);
  background: var(--cream);
  padding: 40px 0 80px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 660px);
  justify-content: center;
  align-items: start;
}

.account-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 38px);
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px;
  background: var(--cream);
  border-radius: 999px;
}

.account-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: .8rem 1rem;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}

.account-tab.is-active {
  background: var(--ink);
  color: white;
}

.account-form {
  display: grid;
  gap: 18px;
}

.account-form[hidden],
.account-session[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 800;
  font-size: .92rem;
}

.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cfc5b8;
  border-radius: 14px;
  padding: .8rem .95rem;
  background: #fffefa;
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(157, 78, 54, .12);
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #5d5750;
  font-size: .9rem;
}

.check-row input {
  margin-top: 4px;
}

.check-row a {
  color: var(--rust-dark);
}

.account-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.account-submit:hover,
.account-submit:focus-visible {
  background: var(--rust-dark);
}

.account-submit:disabled {
  opacity: .55;
  cursor: wait;
}

.account-secondary {
  border: 0;
  background: none;
  color: var(--rust-dark);
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  justify-self: start;
}

.account-secondary:disabled {
  opacity: .55;
  cursor: not-allowed;
  text-decoration: none;
}

.account-otp-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.account-message {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f0ece6;
  color: #514b45;
}

.account-message.is-error {
  background: #f7e7e2;
  color: #7a3025;
}

.account-message.is-success {
  background: #e9f0e6;
  color: #3f563b;
}

.account-session h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 14px;
}

.account-email {
  display: inline-block;
  margin: 12px 0 26px;
  padding: .6rem .85rem;
  border-radius: 999px;
  background: var(--cream);
  font-weight: 800;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.account-help {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: minmax(0, 660px);
  }
}

@media (max-width: 600px) {
  .account-main {
    padding: 20px 0 64px;
  }

  .account-panel {
    border-radius: 22px;
  }
}
