:root {
  --auth-red: #e60000;
  --auth-red-dark: #b80000;
  --auth-ink: #151719;
  --auth-muted: #667078;
  --auth-line: #e5e7e9;
  --auth-soft: #f5f6f7;
}

.auth-page {
  width: 100%;
  min-height: calc(100vh - 80px);
  margin-top: 80px;
  padding: clamp(24px, 4vw, 64px) 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(230, 0, 0, .08), transparent 30%),
    linear-gradient(145deg, #f2f3f4 0%, #fafafa 55%, #f0f1f2 100%);
}

.auth-shell {
  width: min(1100px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
  overflow: hidden;
  border: 1px solid rgba(21, 23, 25, .08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(21, 23, 25, .14);
}

.auth-story {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 64px);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(230, 0, 0, .75), transparent 28%),
    linear-gradient(155deg, #262a2d 0%, #111315 72%);
}

.auth-story::before,
.auth-story::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .09);
}

.auth-story::before {
  width: 360px;
  height: 360px;
  top: -125px;
  right: -185px;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .018);
}

.auth-story::after {
  width: 260px;
  height: 260px;
  bottom: -170px;
  left: -110px;
  border-color: rgba(230, 0, 0, .35);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  width: 210px;
  height: 58px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
}

.auth-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-story__content {
  margin: auto 0;
  padding: 52px 0 40px;
}

.auth-eyebrow,
.auth-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--auth-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 430px;
  margin: 0 0 20px;
  color: #fff;
  font-family: Gilroy, europa, Arial, sans-serif;
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.auth-story__content > p {
  max-width: 410px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 17px;
  line-height: 1.65;
}

.auth-route {
  margin-top: 48px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(12px);
}

.auth-route__place span,
.auth-route__place strong {
  display: block;
}

.auth-route__place span {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.auth-route__place strong { font-size: 14px; }
.auth-route__place--right { text-align: right; }

.auth-route__track {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-route__line {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 11px);
}

.auth-route__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.auth-route__track i {
  position: absolute;
  left: 58%;
  padding: 5px;
  color: var(--auth-red);
  background: #202326;
  transform: translateX(-50%);
}

.auth-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .57);
  font-size: 13px;
}

.auth-trust i { color: #fff; }

.auth-card {
  display: flex;
  align-items: flex-start;
  padding: clamp(36px, 5vw, 72px);
}

.auth-card > .collapse { width: 100%; }

.auth-card__heading h2,
.auth-confirm-card h1 {
  margin: 0 0 12px;
  color: var(--auth-ink);
  font-family: Gilroy, europa, Arial, sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.auth-card__heading > p,
.auth-confirm-card > p {
  margin: 0 0 30px;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-label {
  display: block;
  margin: 0 0 8px;
  color: #34383c;
  font-size: 13px;
  font-weight: 750;
}

.auth-input-wrap { position: relative; }

.auth-input-wrap > i {
  position: absolute;
  top: 50%;
  left: 17px;
  color: #8a9299;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-input {
  width: 100%;
  min-height: 54px;
  padding: 13px 48px;
  border: 1px solid #d9dcdf;
  border-radius: 12px;
  outline: none;
  color: var(--auth-ink);
  background: #fff;
  font-size: 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-input:focus {
  border-color: var(--auth-red);
  box-shadow: 0 0 0 4px rgba(230, 0, 0, .09);
}

.auth-input[aria-invalid='true'] { border-color: var(--auth-red); }

.auth-primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--auth-red);
  box-shadow: 0 10px 22px rgba(230, 0, 0, .2);
  font-size: 15px;
  font-weight: 750;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.auth-primary-button:hover,
.auth-primary-button:focus-visible {
  color: #fff;
  background: var(--auth-red-dark);
  box-shadow: 0 13px 27px rgba(184, 0, 0, .25);
  transform: translateY(-1px);
}

.auth-primary-button:focus-visible,
.auth-method:focus-visible,
.auth-email-chip:focus-visible,
.auth-password-toggle:focus-visible {
  outline: 3px solid rgba(230, 0, 0, .2);
  outline-offset: 2px;
}

.auth-field-error,
.auth-method-status {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--auth-red-dark);
  font-size: 13px;
}

.auth-notice {
  margin: -10px 0 24px;
  padding: 14px 16px;
  border: 1px solid #b9dec9;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  color: #174d2e;
  background: #f0faf4;
}

.auth-notice i { margin-top: 3px; }
.auth-notice strong { font-size: 14px; }
.auth-notice p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; }

.auth-email-chip {
  max-width: 100%;
  margin: 0 0 25px;
  padding: 8px 11px;
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4d555b;
  background: var(--auth-soft);
  font-size: 13px;
}

.auth-email-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-email-chip .fa-pen { margin-left: 4px; color: var(--auth-red); }

.auth-choice-label {
  margin: 0 0 10px;
  color: #454b50;
  font-size: 13px;
  font-weight: 750;
}

.auth-methods { display: grid; gap: 10px; }

.auth-method {
  position: relative;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--auth-ink);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.auth-method:hover {
  border-color: #c6c9cc;
  box-shadow: 0 8px 22px rgba(21, 23, 25, .07);
  transform: translateY(-1px);
}

.auth-method__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #444b50;
  background: #f1f2f3;
  font-size: 18px;
}

.auth-method__icon--primary {
  color: #fff;
  background: var(--auth-red);
}

.auth-method__copy strong,
.auth-method__copy small { display: block; }
.auth-method__copy strong { margin-bottom: 3px; font-size: 14px; }
.auth-method__copy small { color: #798188; font-size: 12px; line-height: 1.35; }

.auth-method__badge {
  padding: 4px 7px;
  border-radius: 999px;
  color: #a00000;
  background: #fff0f0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.auth-method__arrow { color: #a0a6ab; font-size: 12px; }

.auth-method--unavailable { opacity: .52; }
.auth-method--loading { opacity: .65; cursor: wait; }

.auth-primary-button:disabled,
.auth-text-button:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}

.auth-password-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: #fafafa;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: #6f777d;
  background: transparent;
  transform: translateY(-50%);
}

.auth-password-toggle:hover { background: #eceeef; }

.auth-password-actions {
  margin-top: 9px;
  text-align: right;
}

.auth-code-panel {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: #fafafa;
}

.auth-code-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-code-heading__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--auth-red);
  box-shadow: 0 9px 20px rgba(230, 0, 0, .18);
  font-size: 19px;
}

.auth-code-heading strong {
  display: block;
  margin-bottom: 3px;
  color: var(--auth-ink);
  font-size: 16px;
}

.auth-code-heading p {
  max-width: 300px;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-code-heading p span { color: #363b3f; font-weight: 750; }
.auth-code-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.auth-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.auth-code-input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0;
  border: 1px solid #cfd3d6;
  border-radius: 11px;
  outline: none;
  color: var(--auth-ink);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 25px;
  font-weight: 800;
  text-align: center;
  caret-color: var(--auth-red);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.auth-code-input:focus {
  z-index: 1;
  border-color: var(--auth-red);
  box-shadow: 0 0 0 4px rgba(230, 0, 0, .09);
  transform: translateY(-1px);
}

.auth-code-input[aria-invalid='true'] { border-color: var(--auth-red); }

.auth-code-hint {
  margin: 11px 0 0;
  color: #7b8389;
  font-size: 12px;
  text-align: center;
}

.auth-code-actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.auth-text-button {
  padding: 5px 0;
  border: 0;
  color: var(--auth-red-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.auth-text-button:hover:not(:disabled) { text-decoration: underline; }

.auth-password-actions a,
.auth-card__footer a,
.auth-cancel-link {
  color: var(--auth-red-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-password-actions a:hover,
.auth-card__footer a:hover,
.auth-cancel-link:hover { text-decoration: underline; }

.auth-card__footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--auth-line);
  display: flex;
  justify-content: center;
  gap: 6px;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-noscript { margin-top: 20px; }
.auth-noscript .auth-label { margin-top: 10px; }
.auth-noscript .auth-input { padding-left: 14px; }

.auth-signup-container {
  width: min(1120px, calc(100% - 28px));
  max-width: 1120px;
  margin: 112px auto 60px;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(21, 23, 25, .08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21, 23, 25, .1);
}

.auth-account-choice {
  width: min(760px, 100%);
  margin: 0 auto;
}

.auth-account-choice__header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-account-choice__header h2,
.auth-signup-form__header h2 {
  margin: 0 0 10px;
  color: var(--auth-ink);
  font-family: Gilroy, europa, Arial, sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.auth-account-choice__header p,
.auth-signup-form__header p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 15px;
}

.auth-account-options {
  display: grid;
  gap: 14px;
}

.auth-account-option {
  width: 100%;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  color: var(--auth-ink);
  text-align: left;
  text-decoration: none;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.auth-account-option:hover,
.auth-account-option:focus-visible {
  border-color: #c7cace;
  color: var(--auth-ink);
  box-shadow: 0 10px 28px rgba(21, 23, 25, .09);
  transform: translateY(-1px);
}

.auth-account-option:focus-visible {
  outline: 3px solid rgba(230, 0, 0, .18);
  outline-offset: 2px;
}

.auth-account-option__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--auth-red);
  font-size: 21px;
}

.auth-account-option__icon--dark { background: #25292c; }

.auth-account-option__copy strong,
.auth-account-option__copy small { display: block; }

.auth-account-option__copy strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.auth-account-option__copy small {
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-account-option__action {
  color: var(--auth-red-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.auth-account-option > .fa-arrow-right { color: #9aa0a5; }

.auth-account-choice__footer,
.auth-signup-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--auth-line);
  display: flex;
  justify-content: center;
  gap: 6px;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-account-choice__footer a,
.auth-signup-bottom a {
  color: var(--auth-red-dark);
  font-weight: 700;
  text-decoration: none;
}

.auth-account-choice__footer a:hover,
.auth-signup-bottom a:hover { text-decoration: underline; }

.auth-signup-form-card {
  width: min(920px, 100%);
  margin: 0 auto;
}

.auth-signup-form__header {
  position: relative;
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--auth-line);
  text-align: center;
}

.auth-back-button {
  position: absolute;
  top: 2px;
  left: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #565e64;
  background: var(--auth-soft);
  font-size: 12px;
  font-weight: 700;
}

.auth-back-button:hover { background: #e9ebed; }

.auth-sender-form .form-group.row {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: 14px 26px;
  margin: 0 0 18px;
}

.auth-sender-form .form-group.row > [class*='col-'],
.auth-sender-form .form-group.row > [class*='offset-'] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.auth-sender-form .form-group.row > [class*='offset-'] { grid-column: 2; }

.auth-sender-form .control-label {
  padding-top: 13px;
  color: #34383c;
  font-size: 14px;
  font-weight: 750;
  text-align: right;
}

.auth-sender-form .form-control {
  min-height: 50px;
  border-color: #d9dcdf;
  border-radius: 11px;
  font-size: 15px;
}

.auth-sender-form .form-control:focus {
  border-color: var(--auth-red);
  box-shadow: 0 0 0 4px rgba(230, 0, 0, .08);
}

.auth-sender-form .input-group .btn {
  min-width: 54px;
  border-color: #d9dcdf;
  border-radius: 0 11px 11px 0;
}

.auth-sender-form > hr {
  margin: 28px 0;
  border-color: var(--auth-line);
  opacity: 1;
}

.auth-sender-form h6 {
  margin: 0 0 12px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.auth-sender-form #signupnowbutton {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 11px;
  background: var(--auth-red);
  font-weight: 750;
}

.auth-sender-form #signupnowbutton:hover { background: var(--auth-red-dark); }

.auth-sender-form .check-box { margin-top: 4px; }

.auth-sender-form #business-options {
  margin: 6px 0 24px;
  padding: 24px;
  border: 1px solid var(--auth-line);
  border-radius: 15px;
  background: #fafafa;
}

.auth-page--confirm { min-height: calc(100vh - 80px); }

.auth-confirm-card {
  width: min(480px, 100%);
  padding: clamp(34px, 6vw, 56px);
  border: 1px solid rgba(21, 23, 25, .08);
  border-radius: 24px;
  text-align: center;
  background: #fff;
  box-shadow: 0 25px 70px rgba(21, 23, 25, .13);
}

.auth-confirm-card .auth-brand {
  margin: 0 auto 32px;
  border: 1px solid var(--auth-line);
}

.auth-confirm-card__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--auth-red);
  box-shadow: 0 12px 28px rgba(230, 0, 0, .2);
  font-size: 25px;
}

.auth-confirm-card .auth-kicker { margin-bottom: 10px; }
.auth-confirm-card .auth-cancel-link { display: inline-block; margin-top: 20px; }

.auth-confirm-card__trust {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-line);
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #7a8288;
  font-size: 12px;
}

@media (max-width: 850px) {
  .auth-page { padding: 18px 14px 36px; }
  .auth-shell { grid-template-columns: 1fr; min-height: auto; border-radius: 22px; }
  .auth-story { grid-row: 2; min-height: 245px; padding: 28px; }
  .auth-brand { width: 175px; height: 50px; }
  .auth-story__content { padding: 36px 0 8px; }
  .auth-story h1 { max-width: 570px; margin-bottom: 12px; font-size: clamp(34px, 8vw, 50px); }
  .auth-story__content > p { max-width: 600px; font-size: 15px; }
  .auth-route, .auth-trust { display: none; }
  .auth-card { grid-row: 1; padding: 38px 28px 42px; }
  .auth-signup-container { margin-top: 92px; padding: 30px 24px; }
  .auth-signup-form__header { padding-top: 46px; }
  .auth-sender-form .form-group.row { grid-template-columns: 1fr; gap: 7px; }
  .auth-sender-form .form-group.row > [class*='offset-'] { grid-column: 1; }
  .auth-sender-form .control-label { padding-top: 0; text-align: left; }
}

@media (max-width: 480px) {
  .auth-page { padding-right: 10px; padding-left: 10px; }
  .auth-story { min-height: 215px; padding: 23px; }
  .auth-story__content { padding-top: 28px; }
  .auth-story h1 { font-size: 34px; }
  .auth-story__content > p { display: none; }
  .auth-card { padding: 32px 20px 36px; }
  .auth-card__heading h2 { font-size: 31px; }
  .auth-code-panel { padding: 17px 14px; }
  .auth-code-inputs { gap: 6px; }
  .auth-code-input { height: 52px; border-radius: 9px; font-size: 22px; }
  .auth-method { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 11px; }
  .auth-method__badge { display: none; }
  .auth-method__arrow { grid-column: 3; }
  .auth-confirm-card { padding: 34px 22px; }
  .auth-signup-container { width: calc(100% - 20px); padding: 26px 18px; border-radius: 20px; }
  .auth-account-option { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .auth-account-option__icon { width: 48px; height: 48px; }
  .auth-account-option__action { display: none; }
  .auth-account-option > .fa-arrow-right { grid-column: 3; }
  .auth-back-button { left: 50%; transform: translateX(-50%); }
  .auth-sender-form #business-options { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-primary-button,
  .auth-method,
  .auth-input { transition: none; }
}
