body.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 80px) 20px;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 53, 40, 0.55), transparent 56%),
    radial-gradient(circle at 80% 0%, rgba(8, 44, 92, 0.85), transparent 65%),
    var(--secondary-color);
  position: relative;
  overflow: hidden;
  color: #ffffff !important;
}

.auth-home-link {
  position: absolute;
  top: clamp(18px, 4vw, 44px);
  left: clamp(18px, 4vw, 44px);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: rgba(7, 16, 44, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.auth-home-link i {
  font-size: 0.95rem;
  color: inherit !important;
}

.auth-home-link span {
  color: #ffffff !important;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
}

.auth-home-link:hover,
.auth-home-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  background: rgba(255, 53, 40, 0.78);
  color: #ffffff !important;
}

.auth-home-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

@media (max-width: 580px) {
  .auth-home-link {
    padding: 10px 16px;
    gap: 8px;
    font-size: 0.88rem;
    top: clamp(14px, 6vw, 28px);
    left: clamp(14px, 6vw, 24px);
  }
}

.auth-backdrop::before,
.auth-backdrop::after {
  content: '';
  position: absolute;
  inset: -120px;
  background: url('../parallax-bg-wave.png') center/cover no-repeat;
  opacity: 0.12;
  animation: drift 24s linear infinite;
}

.auth-backdrop::after {
  animation-direction: reverse;
  animation-duration: 32s;
  opacity: 0.18;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: float var(--auth-orb-duration, 15s) ease-in-out infinite;
}

.auth-theme-login {
  --auth-orb-duration: 14s;
}

.auth-theme-signup {
  --auth-orb-duration: 16s;
}

.auth-theme-login .auth-orb.orb-1 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 53, 40, 0.85), transparent 70%);
  top: clamp(-60px, 8vw, 40px);
  left: clamp(-40px, 14vw, 120px);
}

.auth-theme-login .auth-orb.orb-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 53, 40, 0.65), transparent 65%);
  bottom: clamp(40px, 12vw, 160px);
  right: clamp(-40px, 10vw, 80px);
  animation-delay: 4s;
}

.auth-theme-login .auth-orb.orb-3 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 122, 40, 0.75), transparent 70%);
  top: 60%;
  left: 18%;
  animation-delay: 7s;
}

.auth-theme-signup .auth-orb.orb-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 53, 40, 0.8), transparent 68%);
  top: clamp(-60px, 10vw, 40px);
  left: clamp(-30px, 12vw, 100px);
}

.auth-theme-signup .auth-orb.orb-2 {
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 99, 40, 0.75), transparent 70%);
  bottom: clamp(40px, 10vw, 160px);
  right: clamp(-40px, 12vw, 80px);
  animation-delay: 4s;
}

.auth-theme-signup .auth-orb.orb-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 53, 120, 0.75), transparent 70%);
  top: 60%;
  left: 18%;
  animation-delay: 7s;
}

.auth-card {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  background: linear-gradient(140deg, rgba(7, 16, 44, 0.88), rgba(7, 16, 44, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-visual {
  background: var(--gradient-primary);
  padding: clamp(68px, 8vw, 88px) clamp(32px, 5vw, 48px) clamp(32px, 5vw, 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--light-color);
  gap: clamp(24px, 4vw, 36px);
  overflow: hidden;
}

.auth-visual::before,
.auth-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 128, 0.35), transparent 70%);
  animation: pulse 20s linear infinite;
  opacity: 0.7;
}

.auth-visual::before {
  width: 420px;
  height: 420px;
  top: -210px;
  right: -120px;
}

.auth-visual::after {
  width: 280px;
  height: 280px;
  bottom: -160px;
  left: -80px;
  animation-delay: 8s;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: sail 12s ease-in-out infinite;
  align-self: flex-start;
}

.auth-visual h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1.15;
  margin: 0;
}

.auth-visual p {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.auth-highlights {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
  line-height: 1.4;
  transform: translateY(18px);
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}

.auth-highlight-item:nth-child(2) {
  animation-delay: 0.15s;
}

.auth-highlight-item:nth-child(3) {
  animation-delay: 0.3s;
}

.auth-highlight-item i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 1rem;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4);
}

.auth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: clamp(16px, 3vw, 28px);
}

.auth-stat {
  min-width: 140px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(7, 16, 44, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 4px;
  animation: rise-in 0.7s ease forwards;
  transform-origin: bottom;
  opacity: 0;
}

.auth-stat:nth-child(2) {
  animation-delay: 0.25s;
}

.auth-stat strong {
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.auth-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.auth-form-panel {
  position: relative;
  padding: clamp(32px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-color);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  z-index: 1;
}

.auth-form-panel::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(7, 16, 44, 0.08);
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.auth-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.auth-brand span {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--dark-color);
}

.auth-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 2.4rem);
  color: var(--dark-color);
}

.auth-heading p {
  margin: 8px 0 0;
  color: rgba(7, 16, 44, 0.65);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  gap: 18px;
  z-index: 1;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  font-weight: 500;
  font-size: 0.95rem;
}

.input-shell {
  position: relative;
}

.input-shell input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(7, 16, 44, 0.08);
  background: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  color: var(--dark-color);
  box-shadow: inset 0 1px 3px rgba(7, 16, 44, 0.06);
}

.input-shell input:focus {
  outline: none;
  border-color: rgba(255, 53, 40, 0.6);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(255, 53, 40, 0.12);
}

.input-shell i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(7, 16, 44, 0.45);
  font-size: 1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(7, 16, 44, 0.65);
}

.form-actions label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.form-actions a {
  color: var(--primary-color);
  font-weight: 500;
}

.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(7, 16, 44, 0.65);
}

.terms-row input {
  margin-top: 4px;
}

.btn-auth {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(255, 53, 40, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.btn-auth span {
  position: relative;
  z-index: 2;
}

.btn-auth::before {
  content: '';
  position: absolute;
  inset: -120%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(12deg);
  transition: transform 0.5s ease;
}

.btn-auth:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 26px 60px rgba(255, 53, 40, 0.42);
}

.btn-auth:hover::before {
  transform: translateX(45%);
}

.auth-divider {
  position: relative;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(7, 16, 44, 0.45);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 16, 44, 0.22), transparent);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-alt {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(7, 16, 44, 0.65);
}

.auth-alt a {
  font-weight: 600;
}

@media (max-width: 1060px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 360px;
  }

  .auth-visual::before {
    top: -180px;
    right: -150px;
  }

  .auth-visual::after {
    bottom: -140px;
    left: -110px;
  }
}

@media (max-width: 680px) {
  body.auth-body {
    padding: clamp(24px, 14vw, 60px) 16px;
  }

  .auth-card {
    border-radius: 22px;
  }

  .auth-form-panel {
    padding: clamp(26px, 8vw, 34px);
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .terms-row {
    flex-direction: column;
  }

  .auth-alt {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  50% {
    transform: translate3d(0, -26px, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

@keyframes drift {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, 2%, 0) scale(1.02);
  }

  100% {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }
}

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

  50% {
    transform: translate3d(6px, -8px, 0);
  }
}

@keyframes rise-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
