/* Satirical login-page hero for “Елітний притон”. */

.auth-window {
  width: min(540px, calc(100vw - 32px));
}

.auth-hero {
  position: relative;
  height: 170px;
  margin: -26px -24px 18px;
  overflow: hidden;
  border-bottom: 1px solid rgba(223, 0, 255, 0.42);
  border-radius: 17px 17px 0 0;
  background: #090609;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

.auth-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 54%, rgba(12, 7, 13, 0.76) 100%),
    linear-gradient(90deg, rgba(223, 0, 255, 0.09), transparent 30%, transparent 70%, rgba(47, 205, 224, 0.08));
  content: "";
  pointer-events: none;
}

.auth-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  filter: saturate(0.96) contrast(1.04);
}

.auth-tagline {
  margin: -2px 0 5px;
  color: #c7a8c9;
  text-align: center;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.auth-subtitle {
  margin-bottom: 18px;
}

:root[data-theme="light"] .auth-hero {
  border-bottom-color: rgba(119, 36, 128, 0.34);
  box-shadow: 0 10px 30px rgba(65, 40, 68, 0.2);
}

:root[data-theme="light"] .auth-tagline {
  color: #694f6d;
}

@media (min-width: 481px) and (max-height: 760px) {
  .auth-window {
    width: min(500px, calc(100vw - 20px));
  }

  .auth-hero {
    height: 92px;
    margin: -12px -20px 8px;
    border-radius: 17px 17px 0 0;
  }

  .auth-tagline {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .auth-subtitle {
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .auth-window {
    width: 100%;
  }

  .auth-hero {
    height: 118px;
    margin: -21px -16px 14px;
    border-radius: 13px 13px 0 0;
  }

  .auth-window h1 {
    font-size: 36px;
  }

  .auth-tagline {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .auth-hero img {
    animation: auth-hero-arrival 700ms ease-out both;
  }
}

@keyframes auth-hero-arrival {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
