/* =============================================
   AMERSAN — Account pages (account/…)
   The Amersan Account's own pages, such as resetting
   a password. On top of /styles.css; same tokens.
   ============================================= */

body.account {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--soft);
}

.account-top { padding: 28px var(--gutter) 0; }
.account-brand { display: inline-block; }
.account-brand img { height: 16px; width: auto; }

.account-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
}

.account-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 60px rgba(0, 0, 0, .06);
  animation: heroIn .9s var(--ease) .05s both;
}
.account-card .eyebrow { margin-bottom: 14px; }

.account-title {
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--ink);
}
.account-lede { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.account-lede strong { color: var(--ink-2); font-weight: 600; word-break: break-all; }

.account-form { margin-top: 28px; display: flex; flex-direction: column; }
.account-form label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 16px 0 8px; }
.account-form label:first-child { margin-top: 0; }

.account-field { position: relative; }
.account-field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 14px;
  background: var(--bg);
  font: 400 16px/1 var(--font); /* 16px: no zoom on iPhone */
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.account-field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .06);
}
.account-field input[aria-invalid="true"] { border-color: #c4314b; }
.account-field--show input { padding-right: 76px; }

.account-show {
  position: absolute; top: 7px; right: 7px;
  height: 36px; padding: 0 12px;
  border: 0; border-radius: 10px;
  background: var(--soft);
  font: 600 13px/1 var(--font);
  color: var(--ink-2);
  cursor: pointer;
}
.account-show:hover { background: #ebebef; }

.account-hint { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.account-error { margin-top: 14px; font-size: 14px; line-height: 1.5; color: #c4314b; }
.account-error a { font-weight: 600; text-decoration: underline; }

.account-submit { margin-top: 24px; width: 100%; height: 50px; font-size: 16px; }
.account-submit[disabled] { opacity: .5; cursor: default; }

.account-help { margin-top: 24px; font-size: 13px; color: var(--muted); }
.account-help a { color: var(--ink); font-weight: 600; }

@media (max-width: 560px) {
  .account-top { padding: 20px 20px 0; }
  .account-main { justify-content: flex-start; padding: 32px 12px 48px; }
  .account-card { padding: 32px 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .account-card { animation: none; }
}
