/* Sign-in and account pages (CR-014), on top of styles.css (the design-system stylesheet). External file only:
   these pages have no inline styles or scripts. */

.auth-main{padding:var(--space-12) 0 var(--space-18)}
.auth{max-width:520px}
.auth--wide{max-width:680px}
.auth h1{font-size:var(--size-heading-1);margin-top:var(--space-2);line-height:1.05}
.auth-lead{margin-top:var(--space-4);font-size:var(--size-lead)}
.auth-email{overflow-wrap:anywhere}
.auth-form{display:grid;gap:var(--space-3);margin-top:var(--space-8)}
.auth-form label{font-weight:600}
.auth-form .opt{font-weight:400;color:var(--muted)}
.auth-form .button{justify-self:start;border:0;font-weight:700}
.auth-form .button[aria-disabled="true"]{opacity:.7;cursor:progress}
.auth-form .input:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}
.code-input{font-size:28px;letter-spacing:.2em;max-width:16ch;font-variant-numeric:tabular-nums}
.zip-input{max-width:9ch;font-variant-numeric:tabular-nums}
.fine{font-size:15px;color:var(--muted)}
.fine a{color:var(--muted)}
.auth-note{margin-top:var(--space-8)}

.form-message{margin-top:var(--space-6);padding:var(--space-3) var(--space-4);border-left:4px solid var(--error);background:var(--surface-card)}
.form-message--ok{border-left-color:var(--ink)}

.auth-alt{display:flex;flex-wrap:wrap;gap:var(--space-3) var(--space-6);align-items:center;margin-top:var(--space-8)}
.auth-inline{display:inline}
.text-button{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}

.pref-group{border:0;padding:0;margin:var(--space-6) 0 0;display:grid;gap:var(--space-2)}
.pref-group legend{font-size:var(--size-title-2);font-weight:700;padding:0;margin-bottom:var(--space-2)}
.pref-options{display:grid;gap:var(--space-2);margin-top:var(--space-2)}
.pref-option{display:flex;gap:var(--space-3);align-items:flex-start;font-weight:400;min-height:32px}
.pref-option input{width:20px;height:20px;margin-top:2px;flex:none;accent-color:var(--ink)}

.auth-signout{margin-top:var(--space-12);padding-top:var(--space-6);border-top:1px solid var(--line-control);display:grid;gap:var(--space-2);justify-items:start}

/* Saved events and the Save / Add to calendar actions (CR-014a). The actions block (_EventActions) is meant to be
   reused on the website's event pages, so its classes don't depend on the account page. */
.saved-events h2,.account-subhead{font-size:var(--size-heading-2);line-height:1.1;margin-top:var(--space-10)}
.saved-list{list-style:none;padding:0;margin:var(--space-4) 0 0;display:grid;gap:var(--space-4)}
.saved-item{background:var(--surface-card);border:1px solid var(--line);padding:var(--space-4) var(--space-5)}
.saved-item h3{font-size:var(--size-title-2);line-height:1.2;overflow-wrap:anywhere}
.saved-item a{overflow-wrap:anywhere}
.saved-label{background:var(--status-tint);color:var(--ink)}
.saved-notice{display:grid;gap:var(--space-2)}
.event-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-5);margin-top:var(--space-3)}
.event-action{display:inline-flex;align-items:center;gap:var(--space-3);margin:0}
.event-action .button{border-width:1px;border-style:solid;font-weight:700}
.event-saved{font-weight:700}

@media (max-width:800px){
  .auth-main{padding:var(--space-8) 0 var(--space-12)}
  .auth h1{font-size:var(--size-heading-1-phone)}
  .saved-events h2,.account-subhead{font-size:var(--size-heading-2-phone)}
  .saved-item{padding:var(--space-4)}
}
