/* Rider onboarding: login, register, check-inbox and race page step bar */
.poe-auth {
  --poe-blue: #2babe1;
  --poe-blue-dark: #1b8fc0;
  --poe-orange: #e37d39;
  --poe-ink: #1f2933;
  --poe-muted: #5f6b76;
  --poe-line: #dfe5ea;
  --poe-ease: cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 0 16px;
  text-align: left;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.poe-auth--register,
.poe-auth--race {
  max-width: 760px;
}

/* Step bar */
.poe-steps {
  display: flex;
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
  counter-reset: none;
}

.poe-step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--poe-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.poe-step + .poe-step::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--poe-line);
  z-index: 0;
  transition: background 300ms var(--poe-ease);
}

.poe-step.is-done + .poe-step::before,
.poe-step.is-done + .poe-step.is-active::before {
  background: var(--poe-blue);
}

.poe-step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--poe-line);
  background: #fff;
  color: var(--poe-muted);
  font-size: 14px;
  transition: background 300ms var(--poe-ease), border-color 300ms var(--poe-ease), transform 300ms var(--poe-ease);
}

.poe-step.is-active {
  color: var(--poe-ink);
}

.poe-step.is-active .poe-step__dot {
  border-color: var(--poe-blue);
  background: var(--poe-blue);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(43, 171, 225, 0.18);
}

.poe-step.is-done .poe-step__dot {
  border-color: var(--poe-blue);
  color: var(--poe-blue);
}

/* Card */
.poe-auth-card {
  background: #fff;
  border: 1px solid var(--poe-line);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.06);
  animation: poe-rise 320ms var(--poe-ease) both;
}

@keyframes poe-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.poe-auth-title {
  margin: 4px 0 6px;
  color: var(--poe-ink);
  font-size: 24px;
  font-weight: 700;
  text-transform: none;
}

.poe-auth-sub,
.poe-auth-switch {
  color: var(--poe-muted);
  font-size: 15px;
  margin: 0 0 18px;
}

.poe-auth-switch {
  margin: 20px 0 0;
  text-align: center;
}

/* One font for the whole flow (the theme's "Noto Sans" isn't loaded and falls back to a serif) */
.poe-auth,
.poe-auth p,
.poe-auth li,
.poe-auth label,
.poe-auth legend,
.poe-auth input,
.poe-auth select,
.poe-auth textarea,
.poe-auth button,
.poe-auth a,
.poe-auth span:not(.fa):not([class*="fa-"]),
.poe-auth .poe-choice,
.poe-auth strong,
.poe-auth b,
.poe-auth em {
  font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

.poe-auth p {
  line-height: 1.55;
}

/* Text links: bold blue, underline only on hover (the theme underlines every link) */
.poe-auth a:not(.cy_button):not(.poe-auth-tab):not(.multipage_next):not(.multipage_back) {
  color: var(--poe-blue-dark) !important;
  font-weight: 600;
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 250ms var(--poe-ease);
}

.poe-auth a:not(.cy_button):not(.poe-auth-tab):not(.multipage_next):not(.multipage_back):hover {
  background-size: 100% 1.5px;
}

.poe-auth a.cy_button,
.poe-auth .multipage_nav a {
  text-decoration: none !important;
}

/* Buttons: lift on hover, press in on tap */
.poe-auth .cy_button,
.poe-auth .poe-submit,
.poe-auth .multipage_next {
  transition: transform 160ms var(--poe-ease), box-shadow 160ms var(--poe-ease), background-color 160ms var(--poe-ease);
}

.poe-auth .cy_button:hover,
.poe-auth .poe-submit:hover,
.poe-auth .multipage_next:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(43, 171, 225, 0.32);
}

.poe-auth .cy_button:active,
.poe-auth .poe-submit:active,
.poe-auth .multipage_next:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 6px rgba(43, 171, 225, 0.25);
}

/* ProfileGrid floats the form (.pm-dbfl); keep it in flow so the progress bar and button sit below it */
.poe-auth--register form#multipage {
  float: none;
  width: 100%;
}

/* ProfileGrid's "Create my profile" link (it replaces the real submit button) */
.poe-auth .multipage_nav,
.poe-auth .poe-progress {
  clear: both;
}

.poe-auth .multipage_nav {
  padding: 0;
  margin: 8px 0 0;
}

.poe-auth .multipage_nav .multipage_back,
.poe-auth .multipage_nav .multipage_state {
  display: none !important;
}

.poe-auth .multipage_nav .multipage_next {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0 18px;
  height: 54px;
  line-height: 54px;
  border: 0;
  background: var(--poe-blue);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.poe-auth .multipage_nav .multipage_next.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* Log in | Create profile */
.poe-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -28px -28px 24px;
  border-bottom: 1px solid var(--poe-line);
}

.poe-auth-tabs {
  position: relative;
  background: #f3f7fa;
}

/* Sliding indicator under the active tab */
.poe-auth-tabs::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50%;
  height: 3px;
  background: var(--poe-orange);
  transition: transform 300ms var(--poe-ease);
}

.poe-auth-tabs:has(.poe-auth-tab:last-child.is-active)::after {
  transform: translateX(100%);
}

.poe-auth-tab {
  position: relative;
  display: block;
  padding: 15px 10px;
  text-align: center;
  text-decoration: none !important;
  transition: background 200ms var(--poe-ease);
}

/* The theme forces link colours with !important, so colour the inner span instead */
.poe-auth-tab span {
  color: var(--poe-muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 200ms var(--poe-ease);
}

.poe-auth-tab:hover {
  background: #e8f2f8;
}

.poe-auth-tab:hover span {
  color: var(--poe-ink);
}

.poe-auth-tab.is-active {
  background: var(--poe-blue);
}

.poe-auth-tab.is-active span {
  color: #fff;
}

/* Notices */
.poe-notice {
  padding: 12px 14px;
  margin: 0 0 18px;
  border-left: 4px solid var(--poe-blue);
  background: #eef8fd;
  color: var(--poe-ink);
  font-size: 15px;
  animation: poe-rise 240ms var(--poe-ease) both;
}

.poe-notice p {
  margin: 0;
}

.poe-notice p + p,
.poe-notice ul {
  margin-top: 6px;
}

.poe-notice ul {
  margin-bottom: 0;
  padding-left: 18px;
}

.poe-notice--error {
  border-left-color: #d64545;
  background: #fdf1f1;
}

.poe-notice--success {
  border-left-color: #2e9d5b;
  background: #effaf3;
}

/* Fields */
.poe-auth-form .poe-field {
  margin-bottom: 16px;
}

.poe-auth-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--poe-ink);
  font-weight: 600;
  font-size: 14px;
}

.poe-auth-form input[type="text"],
.poe-auth-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c9d2d9;
  background: #fff;
  font-size: 16px;
  transition: border-color 150ms var(--poe-ease), box-shadow 150ms var(--poe-ease);
}

.poe-auth input:focus {
  outline: none;
  border-color: var(--poe-blue) !important;
  box-shadow: 0 0 0 3px rgba(43, 171, 225, 0.2);
}

.poe-auth input.poe-invalid,
.poe-auth input.warning {
  border-color: #d64545 !important;
}

.poe-field-error,
.poe-auth .useremailerror {
  display: block;
  margin-top: 6px;
  color: #c03636;
  font-size: 13px;
}

.poe-password {
  position: relative;
}

.poe-password input {
  padding-right: 48px !important;
}

.poe-password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: var(--poe-muted);
  cursor: pointer;
}

.poe-auth-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 18px;
  font-size: 14px;
}

/* Buttons */
.poe-submit {
  position: relative;
  width: 100%;
  border: 0;
  transition: transform 150ms var(--poe-ease), opacity 150ms var(--poe-ease);
}

.poe-submit:active {
  transform: scale(0.98);
}

.poe-submit.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.poe-submit.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: poe-spin 700ms linear infinite;
}

@keyframes poe-spin {
  to { transform: rotate(360deg); }
}

.poe-link-button {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--poe-blue-dark);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.poe-link-button[disabled],
.poe-resend[disabled] {
  opacity: 0.55;
  cursor: default;
}

.poe-resend-status {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--poe-muted);
}

/* Check your inbox */
.poe-inbox {
  text-align: center;
}

.poe-inbox__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #eef8fd;
  color: var(--poe-blue);
  font-size: 28px;
}

.poe-inbox__tips {
  display: inline-block;
  margin: 4px 0 20px;
  padding: 12px 16px 12px 32px;
  background: #f6f9fb;
  color: var(--poe-muted);
  font-size: 14px;
  text-align: left;
}

/* Race page start card */
.poe-start {
  text-align: center;
}

.poe-start__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.poe-start__primary {
  max-width: 320px;
}

.poe-start__secondary {
  font-size: 15px;
}

/* Register form inside the card: labels above inputs, big touch targets */
.poe-auth--register .poe-auth-card .pmagic-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.poe-auth--register .pmagic-form fieldset {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.poe-auth--register .pmagic-form legend {
  float: none;
  margin: 8px 0 16px;
  padding: 10px 14px;
  width: 100%;
  border: 0;
  background: var(--poe-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.poe-auth--register .pmagic-form fieldset .pmrow {
  margin: 0 0 16px;
  padding: 0;
}

.poe-auth--register .pmagic-form .pmrow .pm-col {
  display: block;
}

/* .poe-auth--register sits on the same element as the theme's .pmagic, hence the compound selector */
.poe-auth--register.pmagic fieldset .pmrow .pm-col .pm-field-lable,
.poe-auth--register.pmagic #fieldset_4 .pm-field-lable {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0 0 6px;
  padding: 0;
  text-align: left;
}

.poe-auth--register .pmagic-form .pm-field-lable label {
  margin: 0;
  color: var(--poe-ink);
  font-size: 14px;
  font-weight: 600;
}

.poe-auth--register.pmagic fieldset .pmrow .pm-col .pm-field-input,
.poe-auth--register.pmagic #fieldset_4 .pm-field-input {
  width: 100%;
  font-size: 16px;
}

.poe-auth--register .pmagic-form input[type="text"],
.poe-auth--register .pmagic-form input[type="email"],
.poe-auth--register .pmagic-form input[type="password"],
.poe-auth--register .pmagic-form input[type="tel"],
.poe-auth--register .pmagic-form input[type="date"],
.poe-auth--register .pmagic-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c9d2d9;
  border-radius: 0;
  background-color: #fff;
  color: var(--poe-ink);
  font-size: 16px; /* 16px stops iOS zooming into the field */
  line-height: 46px;
}

.poe-auth--register .pmagic-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  text-align: left;
}

.poe-auth--register .pmagic-form input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.poe-auth--register .pmagic-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6b76' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* Desktop keeps select2 for searching countries; make it match the other fields */
.poe-auth--register .select2-container {
  width: 100% !important;
}

.poe-auth--register .select2-container .select2-selection--single {
  height: 48px;
  border: 1px solid #c9d2d9;
  border-radius: 0;
}

.poe-auth--register .select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 14px;
  line-height: 46px;
  font-size: 16px;
}

.poe-auth--register .select2-container .select2-selection--single .select2-selection__arrow {
  height: 46px;
  right: 8px;
}

/* Gender radios and the terms checkbox: full-width tappable rows */
.poe-auth--register .pmagic-form .pmradio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.poe-auth--register .pmagic-form .pm-radio-option.poe-choice {
  display: flex;
  flex: 1 1 140px;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  user-select: none;
  border: 1px solid #c9d2d9;
  background: #fff;
  color: var(--poe-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 150ms var(--poe-ease), background 150ms var(--poe-ease);
}

.poe-auth--register .poe-choice:hover {
  border-color: var(--poe-blue);
}

.poe-auth--register .poe-choice:has(input:checked) {
  border-color: var(--poe-blue);
  background: #eef8fd;
}

.poe-auth--register .poe-choice input[type="checkbox"],
.poe-auth--register .poe-choice input[type="radio"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: none;
  accent-color: var(--poe-blue);
  cursor: pointer;
}

.poe-auth--register .poe-choice input[type="checkbox"]:focus-visible,
.poe-auth--register .poe-choice input[type="radio"]:focus-visible {
  outline: 2px solid var(--poe-blue);
  outline-offset: 2px;
}

/* Gender: Male / Female only (the theme hid "Others"; keep it hidden if JS hasn't removed it yet) */
.poe-auth--register .pmagic-form .pm_gender .pm-radio-option:has(input[value="Others"]) {
  display: none;
}

/* Selected / hovered option boxes (needs to out-rank the base .pm-radio-option.poe-choice rule) */
.poe-auth--register .pmagic-form .pm-radio-option.poe-choice:hover {
  border-color: var(--poe-blue);
}

.poe-auth--register .pmagic-form .pm-radio-option.poe-choice:has(input:checked) {
  border-color: var(--poe-blue);
  background: #eef8fd;
}

/* Terms: read the short text, then tick the agreement box */
.poe-auth--register .poe-terms-text {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--poe-blue);
  background: #f6f9fb;
  color: #3d4852;
  font-size: 14px;
  font-weight: 400 !important; /* theme makes every form <p> bold */
  line-height: 1.6;
}

.poe-auth--register .pmagic-form .pm_checkboxrequired .pm-radio-option.poe-choice {
  flex-basis: 100%;
  align-items: center;
  padding: 16px;
  border: 2px solid #b8c4cd;
  background: #fff;
  color: var(--poe-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.poe-auth--register .pmagic-form .pm_checkboxrequired .pm-radio-option.poe-choice input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #2e9d5b;
}

.poe-auth--register .pmagic-form .pm_checkboxrequired .pm-radio-option.poe-choice:hover {
  border-color: var(--poe-blue);
}

.poe-auth--register .pmagic-form .pm_checkboxrequired .pm-radio-option.poe-choice:has(input:checked) {
  border-color: #2e9d5b;
  background: #effaf3;
}

.poe-auth--register .pmagic-form .pm_checkboxrequired .pm-radio-option.poe-choice::after {
  content: "Tap to agree";
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f5;
  color: var(--poe-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.poe-auth--register .pmagic-form .pm_checkboxrequired .pm-radio-option.poe-choice:has(input:checked)::after {
  content: "\2713  Agreed";
  background: #2e9d5b;
  color: #fff;
}

/* Phones: checkbox beside the sentence, pill underneath it */
@media (max-width: 575px) {
  .poe-auth--register .pmagic-form .pm_checkboxrequired .pm-radio-option.poe-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 12px;
    row-gap: 10px;
  }

  .poe-auth--register .pmagic-form .pm_checkboxrequired .pm-radio-option.poe-choice input[type="checkbox"] {
    margin-top: 2px;
  }

  .poe-auth--register .pmagic-form .pm_checkboxrequired .pm-radio-option.poe-choice::after {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
}

/* Error summary at the top of the form + flagged fields */
.poe-error-summary ul {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
}

.poe-error-summary li {
  margin: 0;
  padding: 4px 0;
}

.poe-error-summary li::before {
  content: "\2192";
  margin-right: 8px;
  color: #d64545;
  font-weight: 700;
}

.poe-auth .poe-error-summary a span {
  color: #b42318;
}

.poe-auth .poe-error-summary a:hover span {
  color: #7a1810;
}

.poe-auth--register .pmagic-form .errortext {
  font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

.poe-error-summary:focus {
  outline: 2px solid #d64545;
  outline-offset: 2px;
}

.poe-auth--register .pmrow.poe-has-error input:not([type="checkbox"]):not([type="radio"]),
.poe-auth--register .pmrow.poe-has-error select,
.poe-auth--register .pmagic-form .pmrow.poe-has-error .pm-radio-option.poe-choice {
  border-color: #d64545;
  background-color: #fffafa;
}

.poe-auth--register .pmrow.poe-has-error .pm-field-lable label {
  color: #b42318;
}

.poe-auth--register .pmagic-form .errortext {
  margin-top: 6px;
  color: #c03636;
  font-size: 13px;
}

.poe-auth--register .pmagic-form input[type="submit"].poe-submit {
  width: 100%;
  height: 52px;
  margin: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: var(--poe-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Green tick beside a label once its field is valid */
.poe-auth--register .pm-field-lable label::after {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 50%;
  background: #2e9d5b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 200ms var(--poe-ease), transform 280ms var(--poe-ease);
}

.poe-auth--register .pmrow.poe-valid .pm-field-lable label::after {
  opacity: 1;
  transform: scale(1);
}

.poe-auth--register .pmrow.poe-valid input:not([type="checkbox"]):not([type="radio"]),
.poe-auth--register .pmrow.poe-valid select {
  border-color: #8fd1ab;
}

/* Profile complete bar above the submit button */
.poe-progress {
  margin: 8px 0 14px;
}

.poe-progress__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--poe-muted);
  font-size: 13px;
  font-weight: 600;
}

.poe-progress__pct {
  color: var(--poe-ink);
  font-variant-numeric: tabular-nums;
}

.poe-progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #e6edf2;
}

.poe-progress__fill {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--poe-blue), #45c4f0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--poe-ease), background 300ms var(--poe-ease);
}

.poe-progress.is-complete .poe-progress__fill {
  background: linear-gradient(90deg, #2e9d5b, #4cc27c);
}

.poe-progress.is-complete .poe-progress__pct {
  color: #2e9d5b;
}

/* Check-your-inbox celebration */
.poe-inbox {
  position: relative;
  overflow: hidden;
}

.poe-inbox__icon {
  animation: poe-pop 520ms var(--poe-ease) 120ms both;
}

@keyframes poe-pop {
  0% { opacity: 0; transform: scale(0.5) rotate(-12deg); }
  70% { opacity: 1; transform: scale(1.06) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

.poe-inbox__badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #effaf3;
  color: #2e9d5b;
  font-size: 13px;
  font-weight: 700;
  animation: poe-rise 320ms var(--poe-ease) 300ms both;
}

.poe-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.poe-confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  opacity: 0;
  animation: poe-confetti 1400ms cubic-bezier(0.25, 0.8, 0.4, 1) both;
}

.poe-confetti i:nth-child(3n) { background: var(--poe-blue); }
.poe-confetti i:nth-child(3n + 1) { background: var(--poe-orange); }
.poe-confetti i:nth-child(3n + 2) { background: #f4c542; border-radius: 50%; width: 8px; height: 8px; }

.poe-confetti i:nth-child(1) { left: 6%; animation-delay: 80ms; }
.poe-confetti i:nth-child(2) { left: 14%; animation-delay: 220ms; }
.poe-confetti i:nth-child(3) { left: 22%; animation-delay: 140ms; }
.poe-confetti i:nth-child(4) { left: 30%; animation-delay: 300ms; }
.poe-confetti i:nth-child(5) { left: 38%; animation-delay: 60ms; }
.poe-confetti i:nth-child(6) { left: 46%; animation-delay: 260ms; }
.poe-confetti i:nth-child(7) { left: 54%; animation-delay: 180ms; }
.poe-confetti i:nth-child(8) { left: 62%; animation-delay: 40ms; }
.poe-confetti i:nth-child(9) { left: 70%; animation-delay: 240ms; }
.poe-confetti i:nth-child(10) { left: 78%; animation-delay: 120ms; }
.poe-confetti i:nth-child(11) { left: 86%; animation-delay: 320ms; }
.poe-confetti i:nth-child(12) { left: 92%; animation-delay: 200ms; }
.poe-confetti i:nth-child(13) { left: 50%; animation-delay: 360ms; }
.poe-confetti i:nth-child(14) { left: 10%; animation-delay: 380ms; }

@keyframes poe-confetti {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(260px) rotate(540deg); }
}

@media (max-width: 575px) {
  .poe-auth-card {
    padding: 20px 16px;
  }

  .poe-auth-tabs {
    margin: -20px -16px 20px;
  }

  .poe-step {
    font-size: 11px;
  }

  .poe-auth-title {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poe-auth *,
  .poe-auth *::after,
  .poe-auth-card,
  .poe-notice {
    animation: none !important;
    transition: none !important;
  }

  .poe-confetti {
    display: none;
  }
}
