.auth-content {
  position: relative;
  width: min(100%, 390px);
  z-index: 1;
}

.auth-content-wide {
  width: min(100%, 560px);
}

.auth-bg .orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: none;
  will-change: transform;
  backface-visibility: hidden;
}

.auth-bg .orb:first-child {
  top: -100px;
  right: -100px;
  background: linear-gradient(-135deg, rgba(141, 217, 67, 0.94) 0%, rgba(90, 194, 255, 0.66) 100%);
  animation: floating 7s infinite;
}

.auth-bg .orb:last-child {
  left: -100px;
  bottom: -100px;
  background: linear-gradient(-135deg, rgba(255, 255, 255, 0.5) 0%, rgba(88, 177, 239, 0.42) 100%);
  animation: floating 9s infinite;
  animation-delay: -1.4s;
}

.auth-bg .orb-small {
  width: 20px;
  height: 20px;
}

.auth-bg .orb-small:nth-child(2) {
  top: 150px;
  right: -150px;
  background: #9edfff;
  animation: floating 9s infinite;
  animation-delay: -4.2s;
}

.auth-bg .orb-small:nth-child(3) {
  left: -150px;
  bottom: 150px;
  background: #94d33f;
  animation: floating 7s infinite;
  animation-delay: -2.6s;
}

.auth-body {
  display: grid;
  gap: 18px;
  padding: 36px 32px 32px;
  text-align: center;
}

.auth-body-signup {
  gap: 14px;
  padding: 28px 26px 24px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-branding {
  display: flex;
  justify-content: center;
}

.auth-logo {
  width: min(360px, 100%);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(7, 50, 85, 0.12));
}

.auth-kicker {
  margin: -2px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #4f7e9b;
  font-size: 1.14rem;
}

.auth-body h1 {
  margin: 0;
  font-size: 1.95rem;
  letter-spacing: -0.03em;
  color: #12456e;
}

.auth-subtitle,
.auth-footer {
  margin: 0;
  color: var(--muted);
}

.auth-subtitle {
  line-height: 1.55;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}

.auth-required-alert {
  margin: -2px 0 2px;
  color: #b33f33;
  font-weight: 700;
  text-align: left;
}

.auth-footer {
  font-size: 0.94rem;
}

.auth-footer-link {
  color: #0c6fb6;
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-link:hover,
.auth-footer-link:focus-visible {
  text-decoration: underline;
}

.auth-copy {
  max-width: 34ch;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-actions {
  display: grid;
  gap: 12px;
}

.auth-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-text-link {
  color: #0c6fb6;
  font-weight: 700;
  text-decoration: none;
}

.auth-text-link:hover,
.auth-text-link:focus-visible {
  text-decoration: underline;
}

.auth-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.auth-paired-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.auth-field-label span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.auth-field-input-wrap {
  display: grid;
  gap: 8px;
}

.auth-field span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.auth-field input,
.auth-field-input-wrap input,
.auth-field select,
.auth-field-input-wrap select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(34, 71, 55, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-password-input {
  position: relative;
}

.auth-password-input input {
  padding-right: 78px;
}

.auth-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #0c6fb6;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.auth-toggle-password.is-visible::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: rotate(-28deg);
  transform-origin: center;
}

.auth-toggle-password:hover,
.auth-toggle-password:focus-visible {
  opacity: 0.8;
}

.auth-field input::placeholder,
.auth-field-input-wrap input::placeholder {
  color: #90a096;
}

.auth-field input:focus,
.auth-field-input-wrap input:focus,
.auth-field select:focus,
.auth-field-input-wrap select:focus {
  border-color: rgba(111, 191, 97, 0.9);
  box-shadow: 0 0 0 3px rgba(111, 191, 97, 0.16);
}

.auth-field input.auth-required-input,
.auth-field-input-wrap input.auth-required-input {
  border-color: rgba(179, 63, 51, 0.75);
  box-shadow: 0 0 0 3px rgba(179, 63, 51, 0.14);
}

.auth-field.auth-required-error span,
.auth-paired-field.auth-required-error .auth-field-label span {
  color: #b33f33;
}

.auth-field input[type="password"]::-ms-reveal,
.auth-field-input-wrap input[type="password"]::-ms-reveal {
  display: none;
}

.auth-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
  color: #fff;
  background: linear-gradient(135deg, #0c6fb6 0%, #0a5d9b 100%);
  box-shadow: 0 14px 28px rgba(12, 93, 155, 0.22);
}

.auth-button:hover {
  transform: translateY(-1px);
}

.auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.auth-button-secondary {
  background: #eef3f8;
  color: #0c6fb6;
  box-shadow: none;
  border: 1px solid rgba(12, 111, 182, 0.2);
}

.auth-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(208, 94, 73, 0.12);
  border: 1px solid rgba(208, 94, 73, 0.2);
  color: #8f3c2d;
  text-align: left;
}

.auth-success {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(45, 127, 79, 0.12);
  border: 1px solid rgba(45, 127, 79, 0.24);
  color: #2d7f4f;
  text-align: left;
}

.auth-help {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}

.auth-field-help {
  margin: -2px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-side-help {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.auth-side-help .auth-field-help {
  margin: 0;
  text-align: left;
}

.auth-side-help-password {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.auth-row-password,
.auth-row-confirm-password {
  align-items: center;
}

.auth-row-input-center {
  align-items: center;
}

.auth-password-rule,
.auth-live-status {
  font-size: 0.82rem;
}

.auth-live-status {
  min-height: 1.2em;
  font-weight: 600;
}

.auth-rule-ok,
.auth-status-ok {
  color: #2d7f4f;
}

.auth-rule-bad,
.auth-status-bad {
  color: #b33f33;
}

.auth-password-help {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-password-help li + li {
  margin-top: 4px;
}

.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
  color: #8f3c2d;
  font-size: 0.9rem;
}

@keyframes floating {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(12px, 18px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media only screen and (max-width: 575px) {
  .auth-body {
    padding: 26px 18px;
  }

  .auth-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .auth-side-help {
    align-items: start;
  }

  .auth-side-help-password {
    gap: 6px;
  }
}