/* Sign-in page (/sign-in) and account page (/account). Uses the variables
   and page structure of cha-ive-draft.css. */

.account-hero {
  min-height: 44vh;
}

.account-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
/* cha-demo-preview.css hides .section-label site-wide; the account pages
   need their section headings to find each part of the page. */
.account-section .section-label {
  display: block;
  margin-bottom: 32px;
}

.account-status:empty,
.account-error:empty {
  display: none;
}
.account-status {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
  margin-bottom: 32px;
}

.account-unavailable {
  max-width: 60ch;
}
.account-unavailable-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  margin-bottom: 16px;
}
.account-unavailable:focus {
  outline: none;
}

.account-panel > * + * {
  margin-top: 32px;
}

.account-or,
.account-hint {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.account-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 480px;
}
.account-form + .account-form {
  margin-top: 32px;
}
.account-form label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
}
.account-form input[type="email"],
.account-form input[type="tel"],
.account-form input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(30, 27, 24, 0.25);
  padding: 12px 14px;
}
.account-form input:focus-visible,
.account-button:focus-visible,
.account-text-button:focus-visible,
.account-time:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.account-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}
.account-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
}
.account-form .account-check label {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink);
}

/* Off-screen instead of display: none, so that automated clients still see
   and fill the honeypot input. */
.account-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.account-error {
  font-size: 15px;
  line-height: 1.5;
  color: #9b3d2a;
  max-width: 60ch;
}

.account-button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  padding: 16px 28px;
  cursor: pointer;
}
.account-button-quiet {
  background: transparent;
  color: var(--ink);
}
.account-button:disabled,
.account-text-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.account-text-button {
  font: inherit;
  font-size: 14px;
  color: var(--ink-mid);
  background: none;
  border: none;
  padding: 4px 0;
  text-decoration: underline;
  cursor: pointer;
}

.account-list {
  list-style: none;
  max-width: 720px;
}
.account-list > li {
  font-size: 16px;
  line-height: 1.6;
  padding: 16px 0;
  border-top: 1px solid rgba(30, 27, 24, 0.1);
}
.account-booking-time {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
}
.account-booking-detail {
  color: var(--ink-soft);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.account-dialog {
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: var(--bone);
  color: var(--ink);
  padding: 32px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.account-dialog::backdrop {
  background: rgba(30, 27, 24, 0.45);
}
.account-dialog-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
}
.account-dialog > * + * {
  margin-top: 16px;
}

.account-week {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.account-times {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.account-day-label {
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 8px;
}
.account-time {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(30, 27, 24, 0.25);
  padding: 8px 12px;
  margin: 0 8px 8px 0;
  cursor: pointer;
}
.account-time[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bone);
}

@media (max-width: 760px) {
  .account-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .account-dialog {
    padding: 24px;
  }
}
