/* Mirapages — /account/: sign in, create account, dashboard. Tokens in docs/design-tokens.md. */

.account { width: 100%; max-width: 1120px; min-height: 100svh; margin: 0 auto; padding: 112px var(--gutter) 80px; }
.account__loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* Signed out and the forced password change: one arch card */
.account__card {
  width: 100%; max-width: 520px; margin: 0 auto; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr);
  padding: 52px 24px 28px; background: var(--card); border: 1px solid var(--hair);
  border-radius: 280px 280px 28px 28px / 64px 64px 28px 28px; box-shadow: 0 24px 60px rgba(29, 26, 20, .08);
}
@media (min-width: 560px) { .account__card { padding: 60px 40px 36px; } }
.account__title { font: italic 600 clamp(2rem, 6vw, 2.5rem)/1.1 var(--serif); color: var(--accent-text); text-align: center; }
:lang(zh) .account__title { font: 700 1.75rem/1.25 var(--sans); }
.account__lede { text-wrap: balance; text-align: center; color: var(--muted); font-size: .9375rem; }
/* Equal halves, except that a label never wraps: "Create account" takes the room it needs at 320 px. */
.account__tabs { display: grid; grid-template-columns: repeat(2, minmax(max-content, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(29, 26, 20, .06); }
.account__tab { min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: .9375rem; white-space: nowrap; cursor: pointer; transition: background-color .25s, color .25s; }
@media (max-width: 380px) { .account__card { padding-inline: 16px; } .account__tab { padding: 0 8px; } }
.account__tab:hover { color: var(--copper-deep); }
.account__tab.is-on { background: var(--copper); color: var(--ink); }
.account__card .btn--ghost { color: var(--ink); border-color: rgba(29, 26, 20, .2); }

/* Dashboard */
.dash { display: grid; gap: clamp(28px, 4vw, 44px); }
.dash__notice { justify-self: center; text-align: center; }
.dash__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.dash__hello { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.02; color: var(--accent-text); overflow-wrap: anywhere; }
:lang(zh) .dash__hello { font-size: clamp(2rem, 5vw, 3rem); }
.dash__grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .dash__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } }

.acard { min-width: 0; display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--hair); }
.acard__title { font: italic 600 1.625rem/1.15 var(--serif); color: var(--accent-text); }
:lang(zh) .acard__title { font: 700 1.25rem/1.3 var(--sans); }
.acard__muted { color: var(--muted); font-size: .9375rem; text-wrap: balance; }
.acard__ok { color: #067a3d; font-weight: 600; font-size: .9375rem; }
.acard .btn--ghost { color: var(--ink); border-color: rgba(29, 26, 20, .2); justify-self: start; }
.acard .btn--ghost:hover { border-color: var(--copper-deep); color: var(--copper-deep); }
.acard__actions { display: grid; gap: 10px; margin-top: 4px; }
.acard__actions .btn { width: 100%; justify-self: stretch; }
@media (min-width: 560px) { .acard__actions { grid-template-columns: 1fr 1fr; } }

/* Next visit: arch top, centred like the booking done screen */
.acard--next { text-align: center; padding: 48px 24px 28px; border-radius: 280px 280px 24px 24px / 60px 60px 24px 24px; box-shadow: 0 24px 60px rgba(29, 26, 20, .07); }
@media (min-width: 560px) { .acard--next { padding-inline: 36px; } }
@media (max-width: 420px) { .acard--next { padding-inline: 16px; } }
.acard__day { font: 700 clamp(1.375rem, 3vw, 1.75rem)/1.2 var(--sans); }
.acard__time { margin-top: -6px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.acard__svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-weight: 600; }
.acard__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.acard__ref { font-size: .8125rem; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.acard__q { font-weight: 700; }
.acard__reason { width: 100%; min-height: 80px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(29, 26, 20, .15); background: #fff8ef; font: 500 1rem var(--sans); resize: vertical; }
.acard__reason:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 4px rgba(196, 131, 90, .2); }
.acard--next .manage__msg, .acard--next .cal { text-align: left; }
.acard--next .manage__pay { margin-top: 4px; }
.acard--empty { justify-items: center; }
.acard--empty .acard__empty { font: 700 1.25rem/1.3 var(--sans); }
.acard--empty .btn { margin-top: 6px; }

.apill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; background: rgba(29, 26, 20, .07); color: var(--muted); }
.apill--pending { background: rgba(196, 131, 90, .18); color: var(--copper-deep); }
.apill--confirmed { background: rgba(7, 193, 96, .14); color: #067a3d; }
.apill--completed { background: var(--olive); color: var(--bone); }

/* Stamps: the home page's loyalty circles, a size smaller */
.acard--stamps { justify-items: center; text-align: center; }
.acard--stamps .acard__title { justify-self: stretch; }
.acard__stamps { grid-template-columns: repeat(3, 64px); gap: 12px; margin: 6px 0 4px; }
.acard__stamps span { width: 64px; height: 64px; font-size: 1.125rem; }
.acard__count { font-weight: 700; }

/* Visit lists */
.alist { display: grid; gap: 12px; }
.alist__title { font: italic 600 clamp(1.625rem, 3vw, 2rem)/1.1 var(--serif); color: var(--accent-text); }
:lang(zh) .alist__title { font: 700 1.375rem/1.3 var(--sans); }
.alist__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.avisit { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.avisit__date { display: grid; justify-items: center; align-content: center; gap: 2px; height: 66px; padding-top: 6px; border-radius: 28px 28px 10px 10px; background: var(--sand); }
.avisit__date b { font: italic 600 1.5rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.avisit__date span { font-size: .75rem; color: var(--muted); }
.avisit--past .avisit__date { background: transparent; border: 1.5px dashed var(--line); }
.avisit__main { display: grid; gap: 4px; min-width: 0; }
.avisit__svcs { font-weight: 700; overflow-wrap: anywhere; }
.avisit__when { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.avisit__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.avisit__open { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(29, 26, 20, .18); background: transparent; font-weight: 600; font-size: .8125rem; cursor: pointer; }
.avisit__open:hover { border-color: var(--copper-deep); color: var(--copper-deep); }

/* Settings */
.asettings { display: grid; gap: 24px; }
.asettings__grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .asettings__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.asettings__out { justify-self: center; color: var(--ink); border-color: rgba(29, 26, 20, .2); }
.adetails { margin: 0; display: grid; }
.adetails__row { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.adetails__row dt { font-size: .875rem; color: var(--muted); }
.adetails__row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.adetails__row dd.is-empty { font-weight: 500; color: var(--muted); }
.adetails__fixed { font-weight: 600; }
@media (max-width: 420px) { .adetails__row { grid-template-columns: minmax(0, 1fr); } }
