/* The account pages (account/): signing in or up, the account, the verified and new-password pages. One centred
   column; the sign-in screen is narrower, with one bright button (the form's), the rest outlined. */
.account-column { width: min(100%, 640px); margin-inline: auto; }
.account-column.auth { width: min(100%, 400px); }
.account-page h1 { margin-bottom: 14px; font-size: clamp(32px, 4vw, 44px); outline: none; }
.account-page .auth h1 { font-size: clamp(30px, 3.4vw, 38px); }
.account-page .lead { margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.account-page .lead strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.account-page p { margin-bottom: 14px; }

/* Google, Apple, then "or", then email and password */
.auth-providers { display: grid; gap: 10px; }
.btn.provider { width: 100%; gap: 11px; font-size: 14px; font-weight: 600; }
.btn.provider:hover { color: var(--text); }
.btn.provider svg { width: 18px; height: 18px; flex: none; }
.btn.provider:hover > svg { transform: none; }
.account-page .auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 !important; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field-head, .inline-form > label { color: #c7c7bf; font-size: 13px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #0d0e12; color: var(--text); font-size: 15px; transition: border-color .18s; }
.input:hover { border-color: #6c6b78; }
.input:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
.input[aria-invalid="true"] { border-color: #ff9a8a; }
.input[aria-invalid="true"]:focus { outline-color: #ff9a8a; }
.account-page .hint { margin: 0 !important; color: var(--muted); font-size: 12px; line-height: 1.6; }
.hint a { color: var(--text); text-underline-offset: 3px; }
.account-page .form-message { margin: 0 0 16px !important; font-size: 13px; line-height: 1.6; }
.form-message.is-error { color: #ffb1a4; }
.form-message.is-ok { color: var(--lime); }
.auth form .submit { width: 100%; }
.btn:disabled { cursor: default; opacity: .6; transform: none; }
.link-button { padding: 0; border: 0; background: none; color: var(--violet); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--text); }
.link-button:disabled { opacity: .6; cursor: default; }
.account-page .auth-switch { margin-top: 24px !important; color: var(--muted); font-size: 14px; text-align: center; }
.auth-switch .link-button { font-size: 14px; }

/* Signed in */
.signed-in-as strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.account-page .notice { margin: 22px 0 0 !important; padding: 14px 18px; border: 1px solid var(--border); border-left: 2px solid var(--violet); border-radius: 5px; background: var(--panel); font-size: 14px; }
.notice.is-error { border-left-color: #ff9a8a; }
.plan-card { margin: 30px 0 10px; padding: 26px 28px; border: 1px solid #3a3544; border-radius: 8px; background: #111116; }
.plan-card.is-pro { border-color: var(--violet); background: #201a2d; }
.account-page .plan-card .kicker { margin-bottom: 6px; font-size: 11px; }
.account-page .plan-name { margin-bottom: 6px !important; font: 600 34px/1.15 var(--display); letter-spacing: -.02em; }
.plan-card.is-pro .plan-name { color: var(--violet); }
.plan-card #upgrade { margin-top: 20px; }
.plan-card #upgrade .btn { margin-bottom: 10px; }

.account-section { padding: 30px 0 4px; }
.account-section + .account-section { border-top: 1px solid var(--border); }
.account-page .account-section h2 { margin: 0 0 10px; font-size: 20px; }
.item-list { margin: 16px 0 14px !important; padding: 0 !important; list-style: none; }
.item-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 0; border-top: 1px solid var(--border); line-height: 1.5; }
.item-list li:last-child { border-bottom: 1px solid var(--border); }
.item-main { display: grid; gap: 3px; min-width: 0; }
.item-main strong { font-weight: 600; overflow-wrap: anywhere; }
.item-main strong.key { font: 500 14px/1.5 var(--mono); }
.item-meta { color: var(--muted); font-size: 13px; }
.item-list li.is-inactive strong { color: var(--muted); text-decoration: line-through; }
.account-page .item-confirm { margin: 6px 0 0 !important; color: var(--text); font-size: 13px; }
.item-actions { display: flex; flex-shrink: 0; gap: 8px; }
.btn.tiny { min-height: 36px; padding: 6px 14px; font-size: 12px; }
.btn.danger { border-color: #ff9a8a; color: #ffb1a4; }
.btn.danger:hover { border-color: #ffb1a4; background: #2a1716; color: #ffd2cb; }

.inline-form { display: grid; gap: 8px; margin: 18px 0 20px; }
.inline-row { display: flex; gap: 10px; }
.inline-row .input { flex: 1; min-width: 0; }
.inline-row .btn { flex-shrink: 0; min-height: 46px; }
.inline-form .form-message { margin: 0 !important; }

@media (max-width: 540px) {
  .plan-card { padding: 22px; }
  .item-list li { flex-wrap: wrap; }
  .item-list li.is-confirming .item-actions { width: 100%; }
  .inline-row { flex-direction: column; }
  .inline-row .btn { width: 100%; }
  .account-page .auth h1 { font-size: 32px; line-height: 1.25; }
  .account-page h1 { line-height: 1.25; }
}
