/* Sign-in and the account page (signin.html, account.html), on top of site.css. */

.auth { padding-top: clamp(110px, 14vw, 150px); }
.auth .join-card { max-width: 480px; padding-top: 48px; }
.auth .join-card.wide { max-width: 720px; text-align: left; }
.auth h1 { font-size: clamp(26px, 4vw, 32px); }
.auth .join-card > p { margin-bottom: 26px; }
.auth form { display: grid; gap: 16px; text-align: left; }
.auth form .btn { width: 100%; justify-content: center; }
.auth .field input.code {
  font: 600 24px/1 var(--ui); letter-spacing: .4em; text-align: center; height: 52px;
}
.auth .links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.auth .links a, .auth .linkish { color: var(--text2); }
.auth .linkish { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.auth .or {
  display: flex; align-items: center; gap: 12px; margin: 4px 0;
  color: var(--text3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em;
}
.auth .or::before, .auth .or::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.btn-google { width: 100%; justify-content: center; gap: 10px; }
.btn-google svg { width: 18px; height: 18px; }
.auth [hidden] { display: none !important; }
.auth .form-msg { text-align: center; }
.auth .form-msg.ok { color: var(--added); font-weight: 500; }

/* the account page */
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.acct-head p { color: var(--text2); margin: 4px 0 0; }
.acct-section { border-top: 1px solid var(--border); padding: 24px 0 4px; margin-top: 24px; }
.acct-section h2 { font-size: 17px; margin: 0 0 6px; }
.acct-section > p { color: var(--text2); font-size: 14.5px; margin: 0 0 14px; }
.acct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acct-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface);
}
.acct-list .what { display: grid; gap: 2px; min-width: 0; }
.acct-list .what b { font-weight: 600; font-size: 14.5px; }
.acct-list .what span { color: var(--text3); font-size: 13px; }
.acct-meter { height: 8px; border-radius: 999px; background: var(--surface-hover); overflow: hidden; margin: 6px 0 8px; }
.acct-meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; min-width: 2px; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-section form { max-width: 420px; }
.acct-section form .btn { width: auto; justify-self: start; }
.acct-section .form-msg { text-align: left; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.acct-note { color: var(--text3); font-size: 13px; }
@media (max-width: 560px) {
  .acct-list li { flex-direction: column; align-items: stretch; }
}

/* the profile at the top of /account */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.profile-avatar .avatar { width: 72px; height: 72px; box-shadow: 0 0 0 1px var(--border-strong); }
.profile-id { flex: 1; min-width: 200px; }
.profile-id h1 { margin: 0; overflow-wrap: anywhere; }
.profile-id p { color: var(--text2); margin: 4px 0 0; }
.profile-id .acct-note { color: var(--text3); }
