:root {
  --ppk-red: #D6191F;
  --ppk-navy: #0A2A5E;
  --ppk-green: #1EA83C;
  --ppk-ink: #16202F;
  --ppk-body: #3C4759;
  --ppk-faint: #8A93A3;
  --ppk-line: #DDE3ED;
  --ppk-mist: #F4F6FA;
  --font-display: 'Archivo Black', Impact, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ppk-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ppk-red) }

.auth {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  height: 100%;
}

/* ---------- left panel ---------- */

.auth-aside {
  position: relative;
  overflow: hidden;
  background: var(--ppk-navy);
}

.auth-aside-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  filter: grayscale(35%);
}

.auth-aside-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 42, 94, .5) 0%, rgba(10, 42, 94, .93) 74%);
}

.auth-aside-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  color: #fff;
}

.mark { text-decoration: none }

.mark-abbr {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: .08em;
  line-height: 1;
  color: #fff;
}

.mark-full {
  display: block;
  margin-top: .3rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.auth-aside-quote {
  max-width: 32rem;
  border-left: 4px solid var(--ppk-red);
  padding-left: 1.4rem;
}

.auth-aside-quote p {
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  line-height: 1.4;
  font-weight: 500;
  margin: 0 0 .85rem;
}

.auth-aside-quote cite {
  font-family: var(--font-display);
  font-style: normal;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.motto {
  margin: 0;
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

/* ---------- right panel ---------- */

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-panel {
  width: 100%;
  max-width: 23rem;
}

.tricolour {
  display: flex;
  gap: 4px;
  margin-bottom: 1.75rem;
}

.tricolour span {
  height: 6px;
  width: 32px;
}

.tricolour span:nth-child(1) { background: var(--ppk-navy) }
.tricolour span:nth-child(2) { background: var(--ppk-red) }
.tricolour span:nth-child(3) { background: var(--ppk-green) }

.eyebrow {
  margin: 0 0 .6rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ppk-red);
}

.auth-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1;
  margin: 0 0 .6rem;
  color: var(--ppk-navy);
}

.auth-lede {
  margin: 0 0 1.5rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ppk-body);
}

.alert {
  border-left: 4px solid var(--ppk-red);
  background: #FDF1F1;
  color: #8C1418;
  padding: .8rem 1rem;
  margin-bottom: 1.1rem;
  font-size: .88rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  height: 52px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}

.btn:active { transform: translateY(1px) }

.btn-google {
  color: #fff;
  background: var(--ppk-navy);
  border: 0;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22);
}

.btn-google:hover { background: #08224C }

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ppk-green);
  outline-offset: 2px;
}

.auth-note {
  margin: .8rem 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ppk-faint);
}

.hairline {
  height: 1px;
  background: var(--ppk-line);
  margin: 1.5rem 0;
}

.auth-foot {
  margin: 0 0 .5rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ppk-body);
}

.auth-foot a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--ppk-green);
}

.auth-help {
  margin: 0;
  font-size: .82rem;
  color: var(--ppk-faint);
}

.auth-help a { color: var(--ppk-faint) }

.code {
  background: var(--ppk-navy);
  color: #fff;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  html, body { height: auto }

  .auth {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .auth-aside { min-height: 40vh }

  .auth-aside-body { padding: 1.75rem }

  .auth-main { padding: 2.5rem 1.5rem }
}

@media (max-width: 575px) {
  .auth-aside { min-height: 30vh }

  .auth-aside-quote { display: none }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important }
}

/* ================= REGISTER ================= */

.auth-wide { grid-template-columns: .85fr 1fr }

.auth-wide .auth-main {
  align-items: flex-start;
  overflow-y: auto;
  padding: 2.5rem;
}

.auth-panel-wide { max-width: 40rem }

.step-block { animation: fade .18s ease-out }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px) }
  to { opacity: 1; transform: none }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.group-head {
  margin: 1.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ppk-line);
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ppk-navy);
}

.group-head:first-of-type { margin-top: .5rem }

.field-set select,
.field-set input[type=text],
.field-set input[type=tel],
.field-set input[type=date] {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ppk-ink);
  background: var(--ppk-mist);
  border: 1px solid var(--ppk-line);
  border-radius: 2px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field-set select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238A93A3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 11px;
  padding-right: 2.5rem;
}

.field-set select:focus,
.field-set input[type=text]:focus,
.field-set input[type=tel]:focus,
.field-set input[type=date]:focus {
  outline: 0;
  background-color: #fff;
  border-color: var(--ppk-navy);
  box-shadow: 0 0 0 3px rgba(10, 42, 94, .14);
}

.is-fixed,
input[readonly],
select:disabled {
  background-color: #EDF0F6 !important;
  color: var(--ppk-body);
  cursor: default;
}

.field-help {
  margin: .35rem 0 0;
  font-size: .74rem;
  color: var(--ppk-faint);
}

.tag-missing {
  margin-left: .4rem;
  font-style: normal;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: var(--ppk-red);
  padding: .1rem .35rem;
  border-radius: 2px;
}

.notice {
  border-left: 4px solid var(--ppk-green);
  background: #EFF9F1;
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
}

.notice b {
  display: block;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #12662A;
  margin-bottom: .25rem;
}

.notice p {
  margin: 0;
  font-size: .88rem;
  color: var(--ppk-body);
}

.consents {
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ppk-line);
  border-bottom: 1px solid var(--ppk-line);
}

.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-bottom: .9rem;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ppk-body);
  cursor: pointer;
}

.consent:last-child { margin-bottom: 0 }

.consent input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: .15rem;
  accent-color: var(--ppk-red);
}

.consent a { font-weight: 600 }

.btn-inline {
  width: auto;
  min-width: 13rem;
  padding: 0 2rem;
}

.link-back {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ppk-faint);
  text-decoration: underline;
  cursor: pointer;
}

.link-back:hover { color: var(--ppk-navy) }

@media (max-width: 1199px) {
  .auth-wide { grid-template-columns: 1fr }
  .auth-wide .auth-aside { min-height: 26vh }
  .auth-wide .auth-main { overflow: visible }
  .auth-wide .auth-aside-quote { display: none }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr }
  .auth-wide .auth-main { padding: 2rem 1.25rem }
  .btn-inline { width: 100% }
}


/* ================= FIXES ================= */

[hidden] { display: none !important }

.auth-main {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-wide .auth-main { align-items: stretch }

.auth-legal {
  width: 100%;
  max-width: 40rem;
  margin: 2.5rem auto 0;
  font-size: .76rem;
  color: var(--ppk-faint);
}

.auth-legal a { color: var(--ppk-faint); text-decoration: underline }

/* ---------- form primitives ---------- */

.field-set { margin-bottom: 1.15rem }

.field-set label {
  display: block;
  margin-bottom: .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ppk-navy);
}

.field-set input[type=email],
.field-set input[type=password] {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ppk-ink);
  background: var(--ppk-mist);
  border: 1px solid var(--ppk-line);
  border-radius: 2px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field-set input::placeholder { color: var(--ppk-faint) }

.field-set input[type=email]:focus,
.field-set input[type=password]:focus {
  outline: 0;
  background-color: #fff;
  border-color: var(--ppk-navy);
  box-shadow: 0 0 0 3px rgba(10, 42, 94, .14);
}

.field-wrap { position: relative }
.field-wrap input { padding-right: 4.25rem }

.peek {
  position: absolute;
  top: 0;
  right: 0;
  height: 48px;
  padding: 0 1rem;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ppk-faint);
  cursor: pointer;
}

.peek:hover { color: var(--ppk-navy) }

.btn-primary {
  border: 0;
  color: #fff;
  background: var(--ppk-red);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
}

.btn-primary:hover { background: #B8151A }
.btn-primary:disabled { background: var(--ppk-faint); box-shadow: none; cursor: default }

.field-set input:focus-visible,
.field-set select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ppk-green);
  outline-offset: 2px;
}

@media (min-width: 1200px) {
  .auth-wide { height: auto; min-height: 100vh; align-items: start }
  .auth-wide .auth-aside { position: sticky; top: 0; height: 100vh }
  .auth-wide .auth-main { overflow: visible; padding: 2.5rem }
  html:has(.auth-wide), body:has(.auth-wide) { height: auto }
}

.alert { scroll-margin-top: 2rem }

/* ---------- login panel: fixes + air ---------- */

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.auth-legal { max-width: 26rem }

.auth-panel h1 { margin-bottom: .85rem }
.auth-lede { margin-bottom: 2rem }
.tricolour { margin-bottom: 2rem }

.field-set { margin-bottom: 1.4rem }
.field-set label { margin-bottom: .5rem }

.remember { margin: .25rem 0 1.75rem }

.auth-foot { margin-top: 1.75rem; line-height: 1.7 }