
:root {
  --cobalt: #2852A7;
  --sky: #4CB1E4;
  --gold: #d9a340;
  --ink: #060e1f;
  --page: #F8F9FF;
  --pale: #F0F4FF;
  --muted: #566273;
  --line: #d8e0e9;
  --field: #b6c1d4;
  --error: #B42318;
  --success: #19A676;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  color: var(--ink);
  font: 16px/1.6 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body.entry { background: var(--page); }
[hidden] { display: none !important; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 14px; }
.eyebrow { display: block; margin: 0 0 18px; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }

/* ---- the site's header and footer ---- */
.inner { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
header.site { background: #fff; border-bottom: 1px solid var(--line); }
header.site .inner { padding-top: 18px; padding-bottom: 18px; }
header.site a { display: inline-block; }
header.site img { height: 40px; width: auto; display: block; }
/* The account pages' own header: a dark bar that says who is signed in, then the logo row
   with the way on to myPassionIT. Not the site's menus: this place is for the account only. */
.bar { background: var(--ink); color: #dbe5f7; font-size: 13px; line-height: 1.5; }
.bar .inner { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 22px; padding-top: 9px; padding-bottom: 9px; }
.bar strong { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.bar form { margin: 0; }
.bar button.plain { color: #fff; font-size: 13px; }
.bar button.plain:hover { color: var(--gold); }
body.account header.site .inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; }
.mark { display: flex; align-items: center; gap: 16px; }
header.site .product { padding-left: 16px; border-left: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.apps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 14px; }
.apps a { color: var(--ink); font-weight: 500; text-decoration: none; }
.apps a::after { content: " \2192"; color: var(--muted); }
.apps a:hover { color: var(--cobalt); }
footer.site { flex-shrink: 0; background: #fff; border-top: 1px solid var(--line); }
footer.site .inner { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; padding-top: 22px; padding-bottom: 28px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---- the entry shell: the site's login page ---- */
body.entry main { flex: 1 0 auto; display: flex; align-items: center; padding: clamp(30px, 5vw, 70px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 428px); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.brief { background: var(--cobalt); color: #fff; padding: clamp(30px, 4vw, 52px); }
.brief .eyebrow { font-size: 9px; letter-spacing: .14em; color: #d3e6ff; }
.brief-title { margin: 0; max-width: 18ch; color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 600; line-height: 1.04; letter-spacing: -.05em; }
.deck { margin: 22px 0 0; max-width: 46ch; color: #dde7f9; font-size: 15px; line-height: 1.75; }
/* Leading-zero counters and hairline rules: the list the site uses on course pages. */
.points { counter-reset: point; list-style: none; margin: clamp(26px, 3vw, 38px) 0 0; padding: 0; border-top: 1px solid #ffffff50; }
.points li { counter-increment: point; display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid #ffffff2e; font-size: 14px; line-height: 1.6; color: #e3ecfb; }
.points li::before { content: counter(point, decimal-leading-zero); min-width: 22px; padding-top: 3px; color: #bce6fb; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
/* Gold on the top edge marks the thing you came here to do. */
.form { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: clamp(22px, 2.8vw, 34px); display: flex; flex-direction: column; justify-content: center; }
.form h1 { margin: 0 0 10px; font-size: 28px; }
/* The two ways in, as the site draws tabs: a rule, and a cobalt line under the current one. */
.tabs { display: flex; margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.tabs a { flex: 1; padding: 0 4px 13px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { border-bottom-color: var(--cobalt); color: var(--cobalt); font-weight: 700; }
.form h2 { margin: 28px 0 10px; font-size: 18px; letter-spacing: -.03em; }

/* ---- the account shell: the site's account area ---- */
body.account .inner { max-width: none; width: min(1280px, calc(100% - 160px)); padding-left: 0; padding-right: 0; }
.hero { background: var(--cobalt); color: #fff; padding: 34px 0 46px; }
.hero .eyebrow { color: #dbe7fb; margin-bottom: 18px; }
.hero-title { margin: 0; color: #fff; font-size: clamp(38px, 4.6vw, 62px); font-weight: 600; line-height: 1.02; letter-spacing: -.055em; }
.hero-lead { max-width: 760px; margin: 20px 0 0; color: #dbe5f7; font-size: 16px; line-height: 1.8; }
body.account main { flex: 1 0 auto; padding: 54px 0 74px; }
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.index { border-top: 1px solid var(--ink); padding-top: 20px; min-width: 0; }
.index > a { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding: 15px 0; font-size: 15px; line-height: 1.5; color: var(--ink); text-decoration: none; }
.index > a::after { content: "\2192"; font-size: 19px; line-height: 1; color: var(--muted); }
.index > a:hover, .index > a[aria-current] { color: var(--cobalt); }
.index > a[aria-current] { font-weight: 700; }
.index > a[aria-current]::after { color: var(--cobalt); }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.avatar { flex: none; width: 44px; height: 44px; background: var(--cobalt); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; }
.content { min-width: 0; }
/* Fields side by side where there is room, so a form fills its column without long boxes. */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.content .lead, .content p.muted, .content .hint { max-width: 70ch; }
.content h1 { margin: 0 0 14px; font-size: 34px; line-height: 1.12; }
.content h2 { margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--ink); font-size: 24px; }

/* ---- words ---- */
.lead { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.lead strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.steps { margin: 0 0 24px; padding-left: 22px; max-width: 70ch; }
.steps li { margin: 0 0 8px; padding-left: 4px; }
.links { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.links p { margin: 0; }
.links > * + * { margin-top: 9px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { margin: 0 0 22px; padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--pale); font-size: 14px; line-height: 1.6; }
.notice.error { border-left-color: var(--error); background: #fff6f5; color: #7a1a12; }
.notice.success { border-left-color: var(--success); background: #f2fbf7; color: #0b5b40; }

/* ---- forms ---- */
form { margin: 0; }
.field { margin-bottom: 18px; }
label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
/* What a new password must be. Each line turns green or red as the person types. */
.rules { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rules li { position: relative; padding: 3px 0 3px 22px; }
.rules li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border: 1px solid var(--field); background: #fff; }
.rules li.ok { color: #0f7a56; }
.rules li.ok::before { background: var(--success); border-color: var(--success); }
.rules li.bad { color: var(--error); }
.rules li.bad::before { background: var(--error); border-color: var(--error); }
.rules .state { margin-left: 8px; font-weight: 600; }
.hint { margin: 7px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
input[type=text], input[type=email], input[type=password], select, textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 0;
}
textarea { min-height: 0; resize: vertical; line-height: 1.5; }
input.code { font-size: 24px; letter-spacing: 6px; text-align: center; }
.check label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--cobalt); }

/* A button says what it does on the left and points on the right, as on the site. */
button, .button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  color: #fff;
  background: var(--cobalt);
  border: 1px solid var(--cobalt);
  border-radius: 0;
  cursor: pointer;
}
button::after, .button::after { content: "\2192"; font-size: 20px; font-weight: 400; line-height: 1; }
button:hover, .button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
button.secondary, .button.secondary { color: var(--ink); background: #fff; border-color: var(--ink); }
button.secondary:hover, .button.secondary:hover { background: var(--pale); color: var(--ink); }
button.danger, .button.danger { color: var(--error); border-color: var(--error); }
button.plain {
  display: inline;
  width: auto;
  min-height: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--cobalt);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
button.plain::after { content: none; }
button.plain:hover { background: none; color: var(--ink); }
button[disabled] { opacity: .6; cursor: default; }
.stack > * + * { margin-top: 12px; }
.inline { display: inline-block; }
.cf-turnstile { margin-bottom: 18px; min-height: 65px; }

/* ---- lists of things ---- */
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.row:first-of-type { border-top: 1px solid var(--line); }
.row + form, .row + .field, .row + [id] { margin-top: 18px; }
.row button { width: auto; min-height: 0; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.row button::after { content: none; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 18px; padding: 16px; list-style: none; background: var(--pale); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all; }
.qr { display: block; width: 200px; height: 200px; margin: 0 0 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
th, td { padding: 11px 12px 11px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { border-bottom-color: var(--ink); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.scroll { overflow-x: auto; }

@media (max-width: 1100px) {
  body.account .inner { width: calc(100% - 64px); }
  .shell { grid-template-columns: 190px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  /* The form first on a narrow screen: signing in should not start with a scroll. */
  .form { order: 1; }
  .brief { order: 2; }
  .brief-title { max-width: 22ch; font-size: clamp(1.7rem, 6vw, 2.2rem); }
}
@media (max-width: 760px) {
  body.account .inner { width: calc(100% - 40px); }
  body.account main { padding: 30px 0 54px; }
  .hero { padding: 26px 0 32px; }
  .shell { display: block; }
  .index { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 30px; }
  .index .who { width: 100%; }
  .index > a { font-size: 13px; gap: 8px; padding: 11px 0; }
  .content h1 { font-size: 29px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
}
