/* Shared desktop composition for login and registration. The forms retain
   their page-specific controls; this sheet only owns the surrounding frame. */

html,
body {
  background: #08050d;
}

.aurora {
  background:
    radial-gradient(circle at 72% 38%, rgba(100, 48, 190, 0.24), transparent 35%),
    radial-gradient(circle at 14% 90%, rgba(78, 35, 143, 0.2), transparent 34%),
    linear-gradient(145deg, #0b0711 0%, #120a1c 52%, #08050c 100%);
}

.aurora::before {
  content: '';
  position: absolute;
  inset: -32px;
  background: url('/login-banner.png') center 48% / cover no-repeat;
  filter: blur(30px) saturate(0.85);
  opacity: 0.12;
  transform: scale(1.08);
}

.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 9, 0.55);
}

.blob {
  opacity: 0.5;
}

.stage {
  padding: clamp(18px, 3vw, 40px);
}

.card-wrap {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(370px, 44%) minmax(0, 56%);
  width: min(960px, 100%);
  height: min(610px, calc(100dvh - 36px));
  min-height: 0;
  margin: auto;
  flex-shrink: 0;
}

.card-glow {
  inset: -1px;
  z-index: -1;
  border-radius: 29px;
  background: linear-gradient(
    135deg,
    rgba(204, 181, 255, 0.38),
    rgba(135, 91, 229, 0.12) 42%,
    rgba(255, 255, 255, 0.13)
  );
  opacity: 1;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.66),
    0 0 70px rgba(113, 63, 208, 0.12);
}

.card {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 52px 46px 44px;
  background:
    linear-gradient(180deg, rgba(20, 14, 25, 0.98), rgba(12, 8, 16, 0.985));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-right-color: rgba(199, 168, 255, 0.13);
  border-radius: 28px 0 0 28px;
  box-shadow: none;
  animation: cardIn 0.55s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #120622;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 0;
  border-radius: 0 28px 28px 0;
  animation: cardIn 0.65s 0.05s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
}

.auth-visual-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 5, 13, 0.28), transparent 20%),
    linear-gradient(180deg, rgba(7, 3, 12, 0.08), transparent 30%, rgba(7, 3, 12, 0.2));
  box-shadow: inset 0 0 55px rgba(4, 1, 8, 0.2);
}

.logo {
  justify-content: flex-start;
  margin-bottom: 34px;
}

.logo-text {
  font-size: 23px;
  letter-spacing: -0.7px;
}

.heading,
.subtitle {
  text-align: left;
}

.heading {
  font-size: 27px;
}

.subtitle {
  margin-top: 9px;
  margin-bottom: 30px;
}

.input-wrap input {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.105);
}

.btn-submit,
.btn-next {
  background: linear-gradient(100deg, #7650d0, #a983f2 56%, #c1a5ff);
  color: #100a18;
}

@media (max-width: 980px) {
  .stage {
    padding: 20px;
  }

  .card-wrap {
    height: min(610px, calc(100dvh - 40px));
    grid-template-columns: minmax(350px, 46%) minmax(0, 54%);
  }

  .card {
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-width: 760px) {
  .stage {
    align-items: flex-start;
    padding:
      max(18px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .card-wrap {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    min-height: 0;
  }

  .card {
    height: auto;
    min-height: 0;
    padding: 34px 28px 28px;
    border-right-color: rgba(255, 255, 255, 0.07);
    border-radius: 25px;
  }

  .card-glow {
    border-radius: 26px;
  }

  .auth-visual {
    display: none;
  }

  .logo {
    margin-bottom: 25px;
  }
}

@media (max-width: 390px) {
  .card {
    padding: 29px 20px 24px;
  }

  .heading {
    font-size: 24px;
  }
}

@media (max-height: 730px) and (min-width: 761px) {
  .stage {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .card-wrap,
  .card,
  .auth-visual,
  .auth-visual img {
    min-height: 0;
  }

  .card {
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .logo {
    margin-bottom: 24px;
  }

  .subtitle {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual {
    animation: none !important;
  }
}
