* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  margin: 0;
  color: var(--oct-text);
  background: var(--oct-page);
  font-family: var(--oct-font-family);
}

a { color: var(--oct-primary); }

.account-page {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.account-shell { width: min(420px, 100%); }
.account-shell--privacy { width: min(840px, 100%); }

.account-card {
  overflow: hidden;
  background: var(--oct-panel);
  border: 1px solid var(--oct-line);
  border-top: 4px solid var(--oct-primary);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(17, 17, 17, .08);
}

.account-brand { padding: 20px 28px 16px; border-bottom: 1px solid var(--oct-line); }
.account-brand img { display: block; width: auto; height: 36px; }
.account-content { padding: 24px 28px 28px; }
.account-title { margin: 0; font-size: var(--oct-type-title); font-weight: var(--oct-weight-semibold); line-height: 1.3; }
.account-intro { margin: 6px 0 20px; color: var(--oct-muted); font-size: var(--oct-type-body); line-height: 1.5; }
.account-form { display: grid; gap: 14px; }
.account-form .oct-button { width: 100%; min-height: 40px; }
.account-content > .oct-button { width: 100%; min-height: 40px; }
.account-footer { margin: 18px 0 0; color: var(--oct-muted); font-size: var(--oct-type-caption); line-height: 1.5; text-align: center; }
.account-link-row { margin: 18px 0 0; font-size: var(--oct-type-body); text-align: center; }
.account-form__secondary { width: max-content; font-size: var(--oct-type-label); font-weight: var(--oct-weight-semibold); }

.account-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--oct-text);
  cursor: pointer;
  font-size: var(--oct-type-label);
  line-height: 1.4;
}

.account-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--oct-primary); }
.account-choice span { display: grid; gap: 2px; }
.account-choice strong { font-weight: var(--oct-weight-semibold); }
.account-choice small { color: var(--oct-muted); font-size: var(--oct-type-caption); line-height: 1.45; }
.account-choice--boxed { padding: 14px; background: #FFF7FB; border: 1px solid #E8B8D2; border-radius: 6px; }
.account-privacy-summary { margin: 16px 0 0; padding-top: 14px; color: var(--oct-muted); border-top: 1px solid var(--oct-line); font-size: var(--oct-type-caption); line-height: 1.5; }
.account-footer a { color: inherit; }

.account-card--privacy .account-content { padding: 28px 34px 32px; }
.privacy-notice__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.privacy-notice__header .account-intro { margin-bottom: 0; }
.privacy-notice__eyebrow { display: block; margin-bottom: 5px; color: var(--oct-primary); font-size: var(--oct-type-caption); font-weight: var(--oct-weight-bold); letter-spacing: .08em; text-transform: uppercase; }
.privacy-notice__version { flex: 0 0 auto; padding: 6px 9px; color: var(--oct-muted); background: var(--oct-page); border-radius: 4px; font-size: var(--oct-type-micro); }
.privacy-notice__content { max-height: min(52vh, 540px); overflow-y: auto; padding: 0 18px 0 0; border-top: 1px solid var(--oct-line); border-bottom: 1px solid var(--oct-line); scrollbar-gutter: stable; }
.privacy-notice__content section { padding: 17px 0; border-bottom: 1px solid var(--oct-line); }
.privacy-notice__content section:last-child { border-bottom: 0; }
.privacy-notice__content h2 { margin: 0 0 7px; font-size: var(--oct-type-subheading); font-weight: var(--oct-weight-semibold); line-height: 1.35; }
.privacy-notice__content p,
.privacy-notice__content ul { margin: 0; color: #3F4652; font-size: var(--oct-type-label); line-height: 1.6; }
.privacy-notice__content p + p { margin-top: 8px; }
.privacy-notice__content ul { padding-left: 20px; }
.privacy-notice__acknowledgement { margin-top: 20px; }
.privacy-notice__actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.privacy-notice__confirmed { margin: 0 0 12px; color: #166534; font-size: var(--oct-type-label); font-weight: var(--oct-weight-semibold); }
.privacy-notice__signout { margin-top: 12px; text-align: right; }
.privacy-notice__signout button { padding: 0; color: var(--oct-muted); background: transparent; border: 0; font: inherit; font-size: var(--oct-type-caption); text-decoration: underline; cursor: pointer; }
.privacy-notice__back { margin-top: 20px; }

.errorlist { margin: 5px 0 0; padding: 0; color: var(--oct-danger); font-size: var(--oct-type-caption); list-style: none; }

@media (max-width: 560px) {
  .account-page { padding: 16px; }
  .account-brand,
  .account-content { padding-right: 20px; padding-left: 20px; }
  .account-card--privacy .account-content { padding: 22px 20px 24px; }
  .privacy-notice__header { display: block; }
  .privacy-notice__version { display: inline-block; margin-top: 12px; }
  .privacy-notice__content { max-height: 48vh; }
}
