/* ---- Lock page + full-bleed stage under navbar ---- */
html, body {
  height: 100%;
  overflow: hidden;
  background: #0b111a;
}

.login-container {
  --navbar-h: 60px;

  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 0;
}

.login-container::before {
  content: "";
  position: absolute;
  inset: 0;

  background: #0f1621;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: brightness(0.9);
  z-index: -2;
}

/* Full-screen neon wash behind */
.login-container::after {
  content: "";
  position: absolute;
  inset: 0;

  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(42% 48% at 18% 12%, rgba(255, 0, 153, 0.45), transparent 60%),
    radial-gradient(48% 54% at 82% 18%, rgba(0, 221, 255, 0.40), transparent 62%),
    radial-gradient(50% 60% at 50% 96%, rgba(255, 176, 0, 0.38), transparent 60%),
    radial-gradient(120% 120% at 50% 50%, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.38));
}

/* ---- Softer “screenshot” card style ---- */
.login-card {
  width: 100%;
  max-width: 420px;

  padding: 28px 26px;
  border-radius: 22px;

  position: relative;
  overflow: hidden;
  color: #fff;

  /* glass effect */
  background: rgba(16, 25, 36, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);

  /* border + subtle shadow */
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* Subtle inner multicolor wash */
.login-card::before {
  content: "";
  position: absolute;
  inset: -35% -28%;
  border-radius: 24px;

  background:
    radial-gradient(44% 52% at 20% 22%, rgba(255, 0, 153, 0.22), transparent 60%),
    radial-gradient(46% 54% at 82% 22%, rgba(0, 221, 255, 0.18), transparent 62%),
    radial-gradient(52% 60% at 45% 96%, rgba(255, 176, 0, 0.18), transparent 60%);

  filter: blur(18px) saturate(140%);
  z-index: 0;
  pointer-events: none;
}

/* Soft external halo */
.login-card::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: calc(22px + 14px);

  background:
    radial-gradient(60% 70% at 80% 72%, rgba(255, 0, 153, 0.20), transparent 70%),
    radial-gradient(55% 65% at 78% 22%, rgba(0, 221, 255, 0.16), transparent 70%),
    radial-gradient(65% 75% at 30% 95%, rgba(255, 176, 0, 0.14), transparent 75%);

  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}

/* Ensure content stays above card effects */
.login-card > * {
  position: relative;
  z-index: 2;
}

/* ---- Headings, inputs, buttons ---- */
.login-card h2 {
  text-align: center;
  margin: 6px 0 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.login-card label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.95rem;
  opacity: 0.95;
}

.login-card .input {
  width: 100%;
  padding: 12px;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);

  color: #fff;
  outline: none;

  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.login-card .input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.login-card .input:focus {
  border-color: rgba(0, 221, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 221, 255, 0.25);
  background: rgba(255, 255, 255, 0.18);
}

.login-actions {
  margin-top: 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  border: 0;
  padding: 12px 16px;

  cursor: pointer;
  border-radius: 10px;
  font-weight: 600;
  color: #0f1621;

  background: linear-gradient(135deg, #00ddff, #ffb000 70%);
  box-shadow: 0 6px 18px rgba(0, 221, 255, 0.35);

  transition: transform 0.08s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 221, 255, 0.45);
}

.btn-primary:active {
  transform: none;
}

.back-link {
  color: #fff;
  text-decoration: underline;
  opacity: 0.9;
}

.back-link:hover {
  opacity: 1;
}

.error {
  background: rgba(255, 0, 92, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 12px;

  border-radius: 10px;
  margin-bottom: 12px;
  text-align: center;
}

/* ---- Dark mode tweak ---- */
@media (prefers-color-scheme: dark) {
  .login-container::before {
    filter: brightness(0.85);
  }
}
