.access-body { margin: 0; background: #f2f2f9; }

.access-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f2f2f9;
}

.access-bar {
  flex: none;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding: 13px 26px;
}

.access-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.access-brand:hover { text-decoration: none; }

.access-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: #ffffff;
  padding: 4px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.access-mark img { width: 100%; height: 100%; object-fit: contain; }

.access-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.access-brand-one {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}
.access-brand-two { font-size: 12.5px; font-weight: 700; color: #8b96b5; }

.access-body-area {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 62px 24px 60px;
  position: relative;
  overflow: hidden;
}

.access-watermark {
  position: absolute;
  right: -60px;
  bottom: -140px;
  width: 620px;
  height: 620px;
  opacity: 0.05;
  pointer-events: none;
}
.access-watermark img { width: 100%; height: 100%; object-fit: contain; }

.access-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border-radius: 18px;
  padding: 38px 36px 30px;
  box-shadow: 0 18px 44px rgba(16, 24, 43, .08);
}
.access-card-plain { text-align: left; }

.access-lock {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--purple-tint);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.access-lock-done { background: #e7f8ee; color: #16a34a; }

.access-title {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  text-align: center;
}
.access-card-plain .access-title { text-align: left; }

.access-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  text-align: center;
}
.access-card-plain .access-subtitle { text-align: left; }

.access-prose {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink-soft);
}

.access-label {
  display: block;
  margin: 0 0 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.access-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.access-label-row .access-label { margin-bottom: 7px; }

.access-help-link { font-size: 12.5px; font-weight: 600; }

form .field { padding: 13px 14px; font-size: 13.5px; border-radius: 11px; }
form > .access-label:first-of-type { margin-top: 26px; }

.access-password { position: relative; }
.access-password .field { padding-right: 62px; }

.access-reveal {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--purple);
  cursor: pointer;
}
.access-reveal:hover { color: var(--purple-dark); }

.access-submit {
  margin-top: 24px;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
}
.access-submit-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}
.access-submit-link:hover, .access-submit-link:focus, .access-submit-link:visited { text-decoration: none; }

.access-rule + .access-label { margin-top: 18px; }

.access-rule {
  margin: 8px 0 0;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-light);
}

.access-foot {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink-light);
  text-align: center;
}

.notice { margin: 20px 0 0; }

@media (max-width: 620px) {
  .access-body-area { padding: 32px 18px 44px; }
  .access-card { padding: 30px 24px 24px; }
  .access-watermark { display: none; }
}

/* Activation · two-pane entrance. Brand panel left, password form right. */
.activate-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 45% 55%;
  background: var(--card);
}

.activate-brand {
  position: relative;
  overflow: hidden;
  padding: 44px 52px 40px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #10182b 0%, #1b2a53 48%, #3b2a72 100%);
}
.activate-brand::after {
  content: "";
  position: absolute;
  bottom: -190px; left: -130px;
  width: 470px; height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .10) 0%, rgba(201, 162, 39, 0) 70%);
  pointer-events: none;
}

.activate-brand-head { position: relative; z-index: 1; }
.activate-brand .access-mark { width: 52px; height: 52px; border-radius: 15px; padding: 5px; }
.activate-brand .access-brand { gap: 15px; }
.activate-brand .access-brand-one { font-size: 17px; letter-spacing: .06em; }
.activate-brand .access-brand-two { font-size: 13px; font-weight: 600; color: #a9b4cd; }

.activate-brand-rule {
  display: block;
  margin-top: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 39, .42) 0%, rgba(255, 255, 255, .06) 100%);
}

.activate-brand-middle {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 40px 0;
}
.activate-welcome {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #ffffff;
  text-wrap: pretty;
}
.activate-brand-note {
  margin: 20px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.7;
  color: #a9b4cd;
  max-width: 42ch;
}
.activate-brand-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6c789a;
}

.activate-form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
}
.activate-form { width: 100%; max-width: 468px; }
.activate-form-centred { text-align: center; }

.activate-lead {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ink-strong);
  white-space: nowrap;
}

.activate-form form > .access-label:first-of-type { margin-top: 22px; }
.activate-form .access-submit { margin-top: 22px; }
.activate-foot { text-align: left; }
.activate-form-centred .activate-foot { text-align: center; }

.field-required { color: var(--danger); }

/* Binta Buddy speaks on the activation screens. */
.buddy-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 18px 0 0;
  padding: 13px 15px;
  background: var(--purple-tint);
  border: 1px solid var(--purple-line);
  border-radius: 12px;
  text-align: left;
}
.buddy-note-left { margin: 20px auto 0; max-width: 430px; }
.buddy-face {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  flex: none;
}
.buddy-words { min-width: 0; }
.buddy-name { display: block; font-size: 11px; font-weight: 800; color: var(--purple-dark); }
.buddy-message {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  color: #4c3f72;
}

/* Requirements. Grey until met, green once met; never red while typing. */
.rule-panel {
  margin: 12px 0 0;
  padding: 13px 15px;
  background: #f7f8fb;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.rule-panel-title {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}
.rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 7px 16px;
}
.rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-faint);
}
.rule-mark {
  width: 15px; height: 15px;
  border-radius: 50%;
  flex: none;
  background: #ffffff;
  border: 1px solid var(--line);
}
.rule-item-met { font-weight: 600; color: #12803b; }
.rule-item-met .rule-mark {
  background: var(--good-bg);
  border-color: var(--good-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.2 5.2L20 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 9px;
}

.match-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #a52020;
}
.match-note-good { color: #12803b; }

.field-good { border-color: var(--good-line); }
.field-warn { border-color: var(--danger-line); }

.button-primary[disabled] { background: #cbc4e4; cursor: default; }
.button-primary[disabled]:hover { background: #cbc4e4; }

@media (max-width: 900px) {
  .activate-split { grid-template-columns: minmax(0, 1fr); }
  .activate-brand { padding: 30px 26px 26px; }
  .activate-brand-middle { margin: 0; padding: 22px 0 4px; }
  .activate-welcome { font-size: 27px; }
  .activate-brand-foot { display: none; }
  .activate-form-pane { padding: 30px 22px 40px; }
  .activate-lead { font-size: 17px; white-space: normal; }
}

/* Binta Buddy speaks when a page cannot be opened. One centred card over four
   soft corner washes in the group colours. */
.message-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--page);
}
.message-page::before,
.message-page::after,
.message-wash-lower::before,
.message-wash-lower::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.message-page::before {
  top: -190px; left: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(109, 40, 217, .16) 0%, rgba(109, 40, 217, 0) 68%);
}
.message-page::after {
  top: -140px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, .15) 0%, rgba(59, 130, 246, 0) 68%);
}
.message-wash-lower { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.message-wash-lower::before {
  bottom: -220px; right: 12%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(13, 148, 136, .13) 0%, rgba(13, 148, 136, 0) 68%);
}
.message-wash-lower::after {
  bottom: -170px; left: 6%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201, 162, 39, .14) 0%, rgba(201, 162, 39, 0) 68%);
}

.message-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 34px 30px;
  box-shadow: 0 18px 44px rgba(16, 24, 43, .08);
  text-align: center;
}

.message-face { width: 172px; height: auto; display: block; margin: 0 auto 4px; }

.message-who {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--purple);
}

.message-title {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink-strong);
}

.message-body {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: justify;
}

.message-next {
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
  color: #475569;
  text-align: justify;
}

.message-action {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 22px;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
.message-action:hover, .message-action:focus, .message-action:visited { text-decoration: none; }

.message-alt {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  text-decoration: none;
}
.message-alt:hover, .message-alt:focus { color: var(--purple); text-decoration: none; }

@media (max-width: 620px) {
  .message-card { padding: 28px 22px 24px; }
  .message-face { width: 132px; }
}
