.authWrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 26px 0 48px;
}

.authCard {
  width: min(560px, 100%);
  border-radius: 32px;
  background: rgba(18, 28, 48, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.authCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 30%, transparent 70%, rgba(255,255,255,0.03)),
    radial-gradient(circle at top center, rgba(138, 149, 255, 0.08), transparent 28%);
}

.authCard > * {
  position: relative;
  z-index: 1;
}

.authKicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.authTitle {
  margin: 10px 0 10px;
  color: #f7f8ff;
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 10px rgba(160, 175, 255, 0.18),
    0 2px 14px rgba(0, 0, 0, 0.14);
}

.authLead {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 1.02rem;
}

.authAlert {
  border-radius: 14px;
  padding: 10px 12px;
  margin: 10px 0;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.88);
}

.authAlert--error {
  border-color: rgba(255,120,120,.30);
}

.authAlert--success {
  border-color: rgba(120,255,190,.26);
}

.authForm {
  margin-top: 10px;
}

.authLabel {
  display: block;
  margin: 14px 0 8px;
  color: rgba(255,255,255,.82);
  font-size: 0.98rem;
  font-weight: 600;
}

.authInput {
  width: 100%;
  border-radius: 22px;
  padding: 16px 18px;
  color: rgba(22, 28, 40, 0.96);
  background: rgba(236, 242, 255, 0.92);
  border: 1px solid rgba(255,255,255,.18);
  outline: none;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.authInput::placeholder {
  color: rgba(60, 68, 84, 0.48);
}

.authInput:focus {
  border-color: rgba(214,178,104,.42);
  box-shadow:
    0 0 0 4px rgba(214,178,104,.14),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

.authActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.authActions .btn,
.authActions button,
.authActions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  transition: 160ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.authActions .btn:hover,
.authActions button:hover,
.authActions a:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.authActions .btn--primary,
.authActions button[type="submit"] {
  background: linear-gradient(135deg, #d7a64a 0%, #efc26a 100%);
  color: #18120a;
  box-shadow: 0 8px 18px rgba(215, 166, 74, 0.22);
}

.authActions .btn--secondary,
.authActions .btn--ghost,
.authActions a {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.authActions .btn--secondary:hover,
.authActions .btn--ghost:hover,
.authActions a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 520px) {
  .authCard {
    padding: 22px;
    border-radius: 24px;
  }

  .authTitle {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .authActions .btn,
  .authActions button,
  .authActions a {
    width: 100%;
    min-height: 46px;
  }
}