:root {
  --login-bg: rgba(3, 10, 18, 0.96);
  --login-panel: rgba(8, 18, 34, 0.94);
  --login-border: rgba(0, 255, 136, 0.22);
  --login-glow: rgba(0, 255, 136, 0.18);
}

body.login-page {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #eef9ff;
  background: radial-gradient(circle at top, rgba(0, 255, 136, 0.08), transparent 18%),
    linear-gradient(180deg, #02050d 0%, #04111f 39%, #03080f 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(540px, calc(100% - 32px));
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--login-border);
  background: var(--login-panel);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
  position: relative;
  overflow: hidden;
}

.login-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(0, 255, 136, 0.12), transparent 18%),
    radial-gradient(circle at 80% 88%, rgba(9, 69, 163, 0.08), transparent 18%);
  pointer-events: none;
}

.login-panel * {
  position: relative;
  z-index: 1;
}

.login-header {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.login-header .eyebrow {
  color: #7bffb5;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
}

.login-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.login-header p {
  margin: 0;
  color: rgba(238, 249, 255, 0.72);
  line-height: 1.7;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.95rem 1.2rem;
  background: rgba(0, 255, 136, 0.1);
  color: #04ff84;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 136, 0.25);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.login-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.toggle-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #e8f9ff;
  padding: 14px 16px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.toggle-btn.is-active {
  background: rgba(0, 255, 136, 0.14);
  border-color: rgba(0, 255, 136, 0.35);
  color: #ffffff;
}

.toggle-btn:hover {
  transform: translateY(-1px);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  color: rgba(238, 249, 255, 0.77);
  font-size: 0.92rem;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 11, 20, 0.9);
  color: #f3fcff;
  padding: 0 16px;
  font-size: 1rem;
}

/* Ensure dropdown options have dark styling consistent with the background */
.auth-form select option {
  background: #030b14;
  color: #f3fcff;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(0, 255, 136, 0.45);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.08);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-help {
  margin: 0;
  color: rgba(238, 249, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-result {
  min-height: 26px;
  color: #8ef59a;
  font-weight: 700;
}

.auth-result.error {
  color: #ff7c92;
}

.ghost-button {
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #b6f5d1;
  font-weight: 700;
}

.particle-canvas,
.noise-layer,
.scanline-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise-layer {
  background-image: radial-gradient(circle at 15% 20%, rgba(0, 255, 136, 0.08), transparent 16%),
    radial-gradient(circle at 85% 15%, rgba(52, 199, 255, 0.06), transparent 16%);
}

.scanline-layer {
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 20px;
}
