.registration-theme-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 22px;
  padding: 7px 8px 7px 13px;
  border: 1px solid rgba(227, 227, 205, .22);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(26, 55, 37, .78), rgba(8, 25, 15, .82));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 10px 28px rgba(0, 0, 0, .18);
}

.registration-theme-switch__label {
  color: #9eb297;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap;
}

.registration-theme-switch__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 13px;
  background: rgba(4, 15, 8, .58);
}

.registration-theme-switch button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #869f86;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.registration-theme-switch button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.registration-theme-switch button.is-active {
  color: #f9f8f4;
  border-color: rgba(234, 233, 203, .4);
  background: linear-gradient(145deg, #4c8261, #325e43);
  box-shadow: 0 6px 16px rgba(33, 73, 48, .38), inset 0 1px rgba(255, 255, 255, .16);
}

/* High contrast for the gender choice in registration and pet editing. */
.auth-gender button {
  color: #dcddcd !important;
  border-color: rgba(209, 216, 185, .34) !important;
  background: rgba(14, 34, 22, .94) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.auth-gender button.is-active {
  color: #fff !important;
  border-color: rgba(244, 241, 227, .88) !important;
  background: linear-gradient(145deg, #4b8662, #326345) !important;
  box-shadow: 0 0 0 2px rgba(127, 198, 116, .2), 0 9px 22px rgba(7, 22, 13, .32), inset 0 1px rgba(255, 255, 255, .16) !important;
  font-weight: 700;
}

.auth-gateway--register .auth-error {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(238, 147, 159, .3);
  border-radius: 14px;
  color: #ffc3ca;
  background: linear-gradient(145deg, rgba(112, 38, 53, .48), rgba(74, 22, 35, .34));
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.auth-gateway--register .auth-error::before {
  content: "!";
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.auth-gateway--register .auth-error:empty {
  display: none;
}

html[data-theme="light"] .auth-gateway--register {
  color: #1d3a28;
  background: radial-gradient(circle at 50% 5%, rgba(127, 178, 125, .23), transparent 24rem), linear-gradient(155deg, #f7f6f3 0%, #f0efea 55%, #e9e7df 100%);
}

html[data-theme="light"] .auth-gateway--register .auth-gateway__glow {
  background: rgba(100, 159, 116, .18);
}

html[data-theme="light"] .auth-gateway--register :is(h1, .auth-brand span) { color: #1d3a28; }
html[data-theme="light"] .auth-gateway--register :is(.auth-form-screen > p, .auth-pet-photo small) { color: #688573; }
html[data-theme="light"] .auth-gateway--register :is(.auth-back, .auth-form-screen > .eyebrow, .auth-field > span:first-child) { color: #597a66; }
html[data-theme="light"] .auth-gateway--register .auth-progress { background: rgba(54, 90, 68, .16); }
html[data-theme="light"] .auth-gateway--register .auth-progress span { background: #406f52; }

html[data-theme="light"] .auth-gateway--register .registration-theme-switch {
  border-color: rgba(53, 87, 66, .2);
  background: linear-gradient(145deg, rgba(255, 255, 255, .8), rgba(233, 231, 222, .8));
  box-shadow: inset 0 1px #fff, 0 10px 25px rgba(53, 80, 63, .1);
}

html[data-theme="light"] .auth-gateway--register .registration-theme-switch__label { color: #678572; }
html[data-theme="light"] .auth-gateway--register .registration-theme-switch__options { background: rgba(86, 119, 99, .12); }
html[data-theme="light"] .auth-gateway--register .registration-theme-switch button { color: #617f6c; }
html[data-theme="light"] .auth-gateway--register .registration-theme-switch button.is-active {
  color: #fff;
  border-color: rgba(58, 130, 86, .38);
  background: linear-gradient(145deg, #79b876, #4b8d64);
  box-shadow: 0 7px 18px rgba(62, 127, 87, .25), inset 0 1px rgba(255, 255, 255, .24);
}

html[data-theme="light"] .auth-gateway--register .auth-field__control,
html[data-theme="light"] .auth-gateway--register .auth-pet-photo {
  color: #567963;
  border-color: rgba(55, 90, 68, .22);
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px #fff;
}

html[data-theme="light"] .auth-gateway--register .auth-field__control input { color: #1d3a28; }
html[data-theme="light"] .auth-gateway--register .auth-field__control input::placeholder { color: #879c88; }
html[data-theme="light"] .auth-gateway--register .auth-pet-photo strong { color: #274633; }
html[data-theme="light"] .auth-gateway--register .auth-pet-photo__preview {
  color: #4e765d;
  border-color: rgba(55, 90, 68, .24);
  background: linear-gradient(145deg, #f4f2ed, #dedecf);
}

html[data-theme="light"] .auth-gateway--register .auth-gender button {
  color: #597a66 !important;
  border-color: rgba(55, 90, 68, .24) !important;
  background: rgba(255, 255, 255, .68) !important;
  box-shadow: inset 0 1px #fff !important;
}

html[data-theme="light"] .auth-gateway--register .auth-gender button.is-active {
  color: #fff !important;
  border-color: rgba(58, 130, 86, .48) !important;
  background: linear-gradient(145deg, #79b876, #4b8d64) !important;
  box-shadow: 0 0 0 2px rgba(90, 172, 111, .13), 0 10px 24px rgba(62, 127, 87, .24), inset 0 1px rgba(255, 255, 255, .24) !important;
}

html[data-theme="light"] .auth-gateway--register .pet-species-picker--auth button.is-active {
  color: #fff;
  border-color: rgba(58, 130, 86, .48);
  background: linear-gradient(145deg, #79b876, #4b8d64 78%);
  box-shadow: 0 10px 24px rgba(62, 127, 87, .24), inset 0 1px rgba(255, 255, 255, .24);
}

html[data-theme="light"] .auth-gateway--register .auth-error {
  color: #913a49;
  border-color: rgba(174, 70, 88, .24);
  background: linear-gradient(145deg, rgba(255, 241, 243, .96), rgba(244, 218, 223, .86));
  box-shadow: inset 0 1px #fff, 0 8px 20px rgba(121, 55, 70, .1);
}

html[data-theme="light"] .auth-gateway--register .pcv-registration-note {
  border-color: rgba(53, 127, 81, .42);
  background: linear-gradient(145deg, #93c981 0%, #489064 100%);
  box-shadow: 0 12px 28px rgba(62, 135, 90, .25), inset 0 1px rgba(255, 255, 255, .3);
}

html[data-theme="light"] .auth-gateway--register .pcv-registration-note__icon {
  color: #fff;
  border-color: rgba(255, 255, 255, .44);
  background: rgba(255, 255, 255, .16);
}

html[data-theme="light"] .auth-gateway--register .pcv-registration-note strong {
  color: #fff;
}

html[data-theme="light"] .auth-gateway--register .pcv-registration-note small {
  color: #f6f3e8;
}

html[data-theme="light"] .auth-gateway--register .auth-legal-consents {
  color: #597a66;
  border-color: rgba(55, 90, 68, .18);
  background: rgba(255, 255, 255, .42);
}

html[data-theme="light"] .auth-gateway--register .auth-legal-consents a { color: #325e43; }
html[data-theme="light"] .auth-gateway--register .auth-submit {
  color: #fff;
  border-color: rgba(58, 130, 86, .46);
  background: linear-gradient(145deg, #6eaf73, #45855d);
  box-shadow: 0 11px 27px rgba(62, 127, 87, .26), inset 0 1px rgba(255, 255, 255, .24);
}

@media (max-width: 370px) {
  .registration-theme-switch__label { display: none; }
  .registration-theme-switch { justify-content: flex-end; }
  .registration-theme-switch__options { width: 100%; }
}
