body.auth-body {
  min-height: 100dvh;
  margin: 0;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background:
    linear-gradient(rgba(5, 14, 30, 0.66), rgba(5, 14, 30, 0.82)),
    url('/DougFirJasperBackground.jpg') center 18% / cover no-repeat,
    #071426;
  color: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-page-shell {
  width: min(1180px, 100%);
  height: calc(100dvh - 1.5rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.auth-info-panel {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.1rem, 2.4vh, 1.7rem);
  padding: 0;
}

.auth-home-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(191, 219, 254, 0.26);
  border-radius: 999px;
  padding: 0 1rem;
  background: rgba(7, 20, 38, 0.72);
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(3, 10, 24, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-home-link:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(30, 64, 175, 0.38);
}

.auth-info-copy {
  max-width: 680px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-info-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5.35vw, 5.1rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-info-copy p:not(.auth-eyebrow) {
  max-width: 620px;
  margin: clamp(0.8rem, 1.8vh, 1.1rem) 0 0;
  color: rgba(219, 234, 254, 0.9);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.55;
}

.auth-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.auth-benefit-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 0.9rem;
  padding: 0.85rem;
  background: rgba(7, 20, 38, 0.78);
  box-shadow: 0 20px 46px rgba(3, 10, 24, 0.28);
}

.auth-benefit-card > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  font-size: 1.35rem;
}

.auth-benefit-card:nth-child(2) > .material-symbols-outlined {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.auth-benefit-card:nth-child(3) > .material-symbols-outlined {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.auth-benefit-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 900;
}

.auth-benefit-card p {
  margin: 0.35rem 0 0;
  color: rgba(219, 234, 254, 0.78);
  font-size: 0.84rem;
  line-height: 1.35;
}

.auth-form-panel {
  width: min(100%, 470px);
  max-height: calc(100dvh - 1.5rem);
  justify-self: end;
}

.auth-form-heading {
  margin-bottom: 1rem;
}

.auth-card {
  --auth-card-padding: 1.5rem;
  --auth-form-row-gap: 1.15rem;

  max-height: calc(100dvh - 6.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(15, 23, 42, 0.96) !important;
  border-color: rgba(147, 197, 253, 0.18) !important;
  box-shadow: 0 28px 80px rgba(3, 10, 24, 0.5);
  padding: var(--auth-card-padding) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 197, 253, 0.46) rgba(15, 23, 42, 0.54);
}

.auth-card::-webkit-scrollbar {
  width: 0.55rem;
}

.auth-card::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.54);
  border-radius: 999px;
}

.auth-card::-webkit-scrollbar-thumb {
  background: rgba(147, 197, 253, 0.46);
  border-radius: 999px;
}

.auth-card > :not([hidden]) ~ :not([hidden]),
.auth-card form > :not([hidden]) ~ :not([hidden]) {
  margin-top: var(--auth-form-row-gap) !important;
}

.auth-card input {
  min-height: 44px;
}

.auth-card input[type='checkbox'] {
  min-height: 0;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.28rem;
  border: 2px solid rgba(147, 197, 253, 0.62);
  background-color: rgba(15, 23, 42, 0.86);
  cursor: pointer;
}

.auth-card input[type='checkbox']:checked {
  border-color: #3b82f6;
  background-color: #3b82f6;
}

.auth-card input[type='checkbox']:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
}

.email-consent-control {
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
  background: rgba(15, 23, 42, 0.48);
}

.email-consent-control__label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.25;
  cursor: pointer;
}

.email-consent-control p {
  margin: 0.35rem 0 0 1.72rem;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.auth-flow-heading {
  text-align: center;
}

.auth-flow-heading > .material-symbols-outlined {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

.auth-flow-heading h3,
.auth-reset-sent h3 {
  margin: 0.8rem 0 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 900;
}

.auth-flow-heading p,
.auth-reset-sent p {
  margin: 0.6rem 0 0;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-inline-error {
  border: 1px solid rgba(248, 113, 113, 0.48);
  border-radius: 0.8rem;
  padding: 0.85rem;
  background: rgba(127, 29, 29, 0.26);
  color: #fecaca;
  text-align: center;
}

.auth-inline-error p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-inline-error button {
  margin-top: 0.65rem;
  border: 1px solid rgba(248, 113, 113, 0.48);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: rgba(239, 68, 68, 0.16);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.auth-secondary-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.68);
  color: #dbeafe;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
}

.auth-secondary-button:hover {
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(30, 64, 175, 0.34);
  color: #fff;
}

.auth-reset-sent {
  text-align: center;
}

.auth-reset-sent__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 2rem;
  line-height: 1;
  text-align: center;
}

.auth-reset-sent__note {
  color: rgba(191, 219, 254, 0.74) !important;
  font-size: 0.86rem !important;
}

.auth-reset-sent .auth-secondary-button {
  margin-top: 1.35rem;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

.account-created-body {
  display: block;
}

.account-created-shell {
  min-height: calc(100dvh - 1.5rem);
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.account-created-message {
  width: min(780px, 100%);
  padding: clamp(2rem, 6vw, 4rem);
}

.account-created-message .auth-eyebrow {
  justify-content: center;
  margin-bottom: 1rem;
}

.account-created-message h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6.6vw, 6.15rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
}

.account-created-lead {
  margin: 1.25rem auto 0;
  color: rgba(219, 234, 254, 0.92);
  font-size: clamp(1.08rem, 1.65vw, 1.35rem);
  line-height: 1.45;
}

.account-created-note {
  margin: 0.55rem auto 0;
  color: rgba(191, 219, 254, 0.78);
  font-size: clamp(0.95rem, 1.15vw, 1.06rem);
  line-height: 1.45;
}

.account-created-warning {
  width: min(640px, 100%);
  margin: 1.55rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(120, 53, 15, 0.34);
  color: #fcd34d;
}

.account-created-warning .material-symbols-rounded {
  flex: 0 0 auto;
  color: #fbbf24;
}

.account-created-warning p {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.38;
  font-weight: 900;
}

.account-created-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.account-created-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(147, 197, 253, 0.34);
  border-radius: 999px;
  padding: 0 1.2rem;
  background: rgba(7, 20, 38, 0.78);
  color: #dbeafe;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.account-created-link:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.7);
  color: #fff;
  background: rgba(37, 99, 235, 0.38);
}

.account-created-link--primary {
  border-color: rgba(96, 165, 250, 0.82);
  background: #2563eb;
  color: #fff;
}

.account-created-link--primary:hover {
  background: #1d4ed8;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 981px) {
  body.auth-body {
    overflow: hidden;
  }

  .auth-card form {
    gap: 1.05rem;
  }
}

@media (min-width: 981px) and (max-height: 790px) {
  .auth-page-shell {
    gap: clamp(1rem, 2.5vw, 2.5rem);
  }

  .auth-home-link {
    min-height: 40px;
  }

  .auth-eyebrow {
    margin-bottom: 0.75rem;
  }

  .auth-info-copy h1 {
    font-size: clamp(2.8rem, 4.8vw, 4.35rem);
  }

  .auth-info-copy p:not(.auth-eyebrow) {
    max-width: 560px;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .auth-benefit-card {
    min-height: 104px;
  }

  .auth-benefit-card p {
    display: none;
  }

  .auth-form-heading {
    margin-bottom: 0.75rem;
  }

  .auth-card {
    --auth-card-padding: 1.1rem;
    --auth-form-row-gap: 0.85rem;

    max-height: calc(100dvh - 5rem);
  }
}

@media (min-width: 981px) and (max-height: 680px) {
  .auth-page-shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
  }

  .auth-info-panel {
    gap: 0.8rem;
  }

  .auth-info-copy h1 {
    font-size: clamp(2.35rem, 4vw, 3.6rem);
  }

  .auth-info-copy p:not(.auth-eyebrow) {
    display: none;
  }

  .auth-benefit-grid {
    gap: 0.55rem;
  }

  .auth-benefit-card {
    min-height: 82px;
    padding: 0.7rem;
  }

  .auth-benefit-card > .material-symbols-outlined {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }

  .auth-card {
    --auth-card-padding: 0.95rem;
    --auth-form-row-gap: 0.7rem;

    max-height: calc(100dvh - 4.25rem);
  }

  .auth-card input {
    min-height: 40px;
  }
}

@media (max-width: 980px) {
  body.auth-body {
    padding: 1rem;
    overflow: auto;
  }

  .auth-page-shell {
    height: auto;
    min-height: calc(100dvh - 2rem);
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1rem;
  }

  .auth-info-panel {
    min-height: auto;
    gap: 1.15rem;
    padding: 0;
  }

  .auth-info-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.7rem, 12vw, 4.5rem);
  }

  .auth-benefit-grid {
    grid-template-columns: 1fr;
  }

  .auth-benefit-card {
    min-height: auto;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .auth-form-panel {
    order: -1;
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 2rem);
    justify-self: center;
  }

  .auth-form-heading {
    margin-bottom: 0.55rem;
  }

  .auth-form-heading p {
    margin-top: 0.25rem;
  }

  .auth-card {
    --auth-card-padding: 1rem;
    --auth-form-row-gap: 0.85rem;

    max-height: calc(100dvh - 6.1rem);
  }

  .account-created-shell {
    min-height: calc(100dvh - 2rem);
  }
}

@media (max-width: 520px) {
  body.auth-body {
    padding: 0.85rem;
  }

  .auth-home-link {
    padding: 0 0.85rem;
  }

  .auth-info-copy h1 {
    font-size: 2.75rem;
  }

  .auth-info-copy p:not(.auth-eyebrow) {
    font-size: 0.98rem;
  }

  .auth-card {
    --auth-card-padding: 1rem;
    --auth-form-row-gap: 0.75rem;
  }

  .auth-form-heading h2 {
    font-size: 1.65rem;
  }

  .account-created-message {
    padding: 2rem 0.35rem;
  }

  .account-created-message h1 {
    font-size: 2.72rem;
  }

  .account-created-warning {
    align-items: flex-start;
    text-align: left;
  }

  .account-created-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-created-link {
    width: 100%;
  }
}

@media (max-width: 520px) and (max-height: 640px) {
  body.auth-body {
    padding: 0.55rem;
  }

  .auth-page-shell {
    min-height: calc(100dvh - 1.1rem);
  }

  .auth-form-panel {
    max-height: calc(100dvh - 1.1rem);
  }

  .auth-form-heading {
    margin-bottom: 0.35rem;
  }

  .auth-form-heading h2 {
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .auth-form-heading p {
    display: none;
  }

  .auth-card {
    --auth-card-padding: 0.72rem;
    --auth-form-row-gap: 0.48rem;

    max-height: calc(100dvh - 4.6rem);
  }

  .auth-card input {
    min-height: 38px;
  }

  .email-consent-control {
    padding: 0.55rem 0.65rem;
  }

  .email-consent-control p {
    display: none;
  }
}
