/* Premium provider registration — isolated from the shared authentication layer. */
:root {
  --pr-ink: #10251c;
  --pr-muted: #66776e;
  --pr-green: #087448;
  --pr-green-dark: #043f2d;
  --pr-green-deep: #032c20;
  --pr-mint: #e8f3ed;
  --pr-lime: #d8ef67;
  --pr-line: #d6e2da;
  --pr-paper: #ffffff;
}

body.registration-flow-page .auth-registration-frame {
  box-shadow: 0 36px 100px rgba(4, 49, 32, .16), 0 2px 8px rgba(4, 49, 32, .04);
}

body.registration-flow-page .auth-registration-brandbar {
  background: rgba(255, 255, 255, .96);
}

body.registration-flow-page .auth-registration-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.registration-flow-page .auth-registration-meta span::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--pr-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(8, 116, 72, .1);
}

/* Role cards are direct actions: one clear click advances the journey. */
body.registration-flow-page .auth-role-grid {
  align-items: stretch;
}

body.registration-flow-page .auth-role-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 238px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 22px;
  overflow: hidden;
  color: var(--pr-ink);
  background: #fbfdfb;
  border: 1px solid var(--pr-line);
  border-radius: 20px;
  font: inherit;
  text-align: start;
  cursor: pointer;
  isolation: isolate;
}

body.registration-flow-page .auth-role-option::before {
  position: absolute;
  z-index: -1;
  width: 130px;
  height: 130px;
  top: -70px;
  inset-inline-end: -65px;
  content: "";
  border: 1px solid rgba(8, 116, 72, .12);
  border-radius: 50%;
}

body.registration-flow-page .auth-role-option:hover {
  transform: translateY(-4px);
  border-color: #80a990;
  box-shadow: 0 18px 38px rgba(5, 71, 44, .1);
}

body.registration-flow-page .auth-role-option:active {
  transform: translateY(-1px);
}

body.registration-flow-page .auth-role-option:focus-visible {
  outline: 3px solid rgba(8, 116, 72, .22);
  outline-offset: 3px;
}

body.registration-flow-page .auth-role-option--provider {
  color: #fff;
  background:
    radial-gradient(circle at 10% 8%, rgba(216, 239, 103, .18), transparent 34%),
    linear-gradient(145deg, var(--pr-green-deep), var(--pr-green-dark) 62%, #075b3d);
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(3, 55, 36, .17);
}

body.registration-flow-page .auth-role-option--provider::before {
  width: 170px;
  height: 170px;
  top: auto;
  bottom: -100px;
  border-color: rgba(216, 239, 103, .18);
}

body.registration-flow-page .auth-role-option--provider:hover {
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(3, 55, 36, .24);
}

body.registration-flow-page .auth-role-badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: #173c2c;
  background: var(--pr-lime);
  border-radius: 999px;
  font-size: .54rem;
  font-weight: 900;
}

body.registration-flow-page .auth-role-option .auth-role-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  margin: 0 0 18px;
  color: var(--pr-green);
  background: var(--pr-mint);
  border-radius: 16px;
  font-size: 1.12rem;
}

body.registration-flow-page .auth-role-option--provider .auth-role-icon {
  color: var(--pr-lime);
  background: rgba(216, 239, 103, .1);
  border: 1px solid rgba(216, 239, 103, .17);
}

body.registration-flow-page .auth-role-copy {
  display: grid;
  gap: 7px;
}

body.registration-flow-page .auth-role-option .auth-role-copy strong {
  color: inherit;
  font-size: .93rem;
  line-height: 1.4;
}

body.registration-flow-page .auth-role-option .auth-role-copy small {
  max-width: 28ch;
  color: var(--pr-muted);
  font-size: .62rem;
  line-height: 1.8;
}

body.registration-flow-page .auth-role-option--provider .auth-role-copy small {
  color: #bed4c8;
}

body.registration-flow-page .auth-role-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  color: var(--pr-green);
  border-top: 1px solid rgba(8, 116, 72, .1);
  font-size: .63rem;
  font-weight: 900;
}

body.registration-flow-page .auth-role-option--provider .auth-role-action {
  color: var(--pr-lime);
  border-color: rgba(255, 255, 255, .12);
}

body.registration-flow-page .auth-role-assurance,
body.registration-flow-page .auth-submit-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 4px 0 0;
  color: #6b7971;
  font-size: .57rem;
  line-height: 1.6;
}

body.registration-flow-page .auth-role-assurance i,
body.registration-flow-page .auth-submit-assurance i {
  color: var(--pr-green);
}

body.registration-flow-page .auth-submit-assurance {
  margin-top: -2px;
}

/* Provider-specific trust and next-step context. */
body.provider-registration-path .auth-registration-intent {
  background: linear-gradient(135deg, #edf6f1, #f7faf8);
  border-color: #cbe0d3;
}

body.registration-flow-page .auth-provider-next {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 5px;
  padding: 13px 14px;
  color: #173c2d;
  background: #eef6f1;
  border: 1px solid #d2e4d8;
  border-radius: 14px;
}

body.registration-flow-page .auth-provider-next > span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--pr-green);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(8, 77, 49, .08);
}

body.registration-flow-page .auth-provider-next > div {
  display: grid;
  gap: 3px;
}

body.registration-flow-page .auth-provider-next strong {
  font-size: .66rem;
}

body.registration-flow-page .auth-provider-next small {
  color: #68786f;
  font-size: .56rem;
  line-height: 1.65;
}

body.registration-flow-page .auth-fee-consent {
  position: relative;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 13px;
  color: #42534a;
  background: #fffdf6;
  border: 1px solid #eadfb7;
  border-radius: 13px;
  font-size: .59rem;
  line-height: 1.75;
  cursor: pointer;
}

body.registration-flow-page .auth-fee-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.registration-flow-page .auth-fee-consent__check {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: transparent;
  background: #fff;
  border: 1px solid #b9c9c0;
  border-radius: 7px;
  font-size: .55rem;
  transition: .16s ease;
}

body.registration-flow-page .auth-fee-consent input:checked + .auth-fee-consent__check {
  color: #fff;
  background: var(--pr-green);
  border-color: var(--pr-green);
}

body.registration-flow-page .auth-fee-consent:has(input:focus-visible) {
  outline: 3px solid rgba(8, 116, 72, .2);
  outline-offset: 2px;
}

body.registration-flow-page .auth-code-field[aria-invalid="true"] {
  border-color: #c34b4b;
  box-shadow: 0 0 0 3px rgba(195, 75, 75, .09);
}

body.registration-flow-page .auth-field-error {
  padding: 8px 10px;
  color: #9b2f36;
  background: #fff1f2;
  border-radius: 9px;
  font-size: .58rem;
}

body.provider-registration-path .auth-primary {
  background: linear-gradient(135deg, #087448, #055637);
  border-color: #055f3c;
}

@media (max-width: 900px) {
  body.registration-flow-page .auth-registration-layout {
    min-height: 0;
  }

  body.registration-flow-page .auth-role-option {
    min-height: 215px;
  }
}

@media (max-width: 620px) {
  body.registration-flow-page .auth-flow-companion {
    min-height: 184px;
  }

  body.registration-flow-page .auth-flow-companion h2 {
    margin-top: 14px;
    font-size: 1.75rem;
  }

  body.registration-flow-page .auth-flow-companion > p {
    max-width: 46ch;
    line-height: 1.7;
  }

  body.registration-flow-page .auth-flow-shell {
    padding-top: 24px;
  }

  body.registration-flow-page .auth-registration-steps {
    margin-bottom: 27px;
  }

  body.registration-flow-page .auth-role-option {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 12px;
    min-height: 128px;
    padding: 16px;
  }

  body.registration-flow-page .auth-role-option .auth-role-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 13px;
  }

  body.registration-flow-page .auth-role-copy {
    grid-column: 2;
    grid-row: 1;
    padding-inline-end: 3px;
  }

  body.registration-flow-page .auth-role-option .auth-role-copy strong {
    font-size: .78rem;
  }

  body.registration-flow-page .auth-role-option .auth-role-copy small {
    font-size: .56rem;
    line-height: 1.65;
  }

  body.registration-flow-page .auth-role-action {
    grid-column: 2;
    grid-row: 2;
    margin-top: 11px;
    padding-top: 10px;
    font-size: .57rem;
  }

  body.registration-flow-page .auth-role-badge {
    top: 11px;
    inset-inline-end: 11px;
    padding: 4px 7px;
    font-size: .48rem;
  }

  body.registration-flow-page .auth-role-option--provider .auth-role-copy {
    padding-top: 22px;
  }
}

@media (max-width: 380px) {
  body.registration-flow-page .auth-role-option {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 13px;
  }

  body.registration-flow-page .auth-role-option .auth-role-icon {
    width: 42px;
    height: 42px;
  }

  body.registration-flow-page .auth-provider-next {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 11px;
  }

  body.registration-flow-page .auth-provider-next > span {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.registration-flow-page .auth-role-option,
  body.registration-flow-page .auth-fee-consent__check {
    transition: none;
  }
}
