* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.lamp-zone {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 280px;
  pointer-events: none;
  z-index: 3;
}

.lamp {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.02;
  filter: brightness(0.08);
  transition: opacity 0.9s ease, filter 0.9s ease;
}

.page.lights-on .lamp {
  opacity: 1;
  filter: brightness(1);
}

.lamp-cap {
  width: 54px;
  height: 18px;
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(145deg, #7d8087, #343843);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
  z-index: 3;
}

.lamp-head {
  position: relative;
  width: 220px;
  height: 114px;
  margin-top: -2px;
  border-radius: 28px 28px 95px 95px;
  background: linear-gradient(145deg, #5f6470 0%, #2b2f38 45%, #171c24 100%);
  box-shadow:
    inset 10px 10px 18px rgba(255,255,255,0.04),
    inset -16px -16px 20px rgba(0,0,0,0.34),
    0 14px 28px rgba(0,0,0,0.28);
  overflow: hidden;
}

.lamp-shine {
  position: absolute;
  top: 11px;
  left: 18px;
  width: 92px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(to right, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  filter: blur(3px);
}

.lamp-inner-light {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 155px;
  height: 42px;
  border-radius: 0 0 36px 36px;
  background: radial-gradient(circle at center, rgba(255, 243, 205, 0.98), rgba(255, 210, 93, 0.34), transparent 82%);
  opacity: 0;
  filter: blur(2px);
  transition: opacity 0.9s ease;
}

.lamp-inner-light.on {
  opacity: 1;
}

.lamp-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(255, 220, 118, 0.12) 0%, rgba(255, 205, 90, 0.06) 30%, rgba(255, 183, 46, 0.02) 52%, transparent 72%);
  opacity: 0;
  filter: blur(24px);
  transition: opacity 1s ease;
}

.lamp-glow.on {
  opacity: 1;
}

.lamp-beam {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 980px;
  height: 760px;
  opacity: 0;
  pointer-events: none;
  filter: blur(12px);
  transition: opacity 1s ease;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 239, 192, 0.18) 0%,
    rgba(255, 217, 110, 0.10) 22%,
    rgba(255, 187, 52, 0.04) 42%,
    rgba(255, 170, 30, 0.01) 58%,
    transparent 72%
  );
  clip-path: polygon(43% 0%, 57% 0%, 84% 100%, 16% 100%);
}

.lamp-beam.on {
  opacity: 1;
}

.switch-area {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.old-switch {
  position: relative;
  width: 92px;
  height: 132px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.switch-plate {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #f0f0f0, #cfcfcf);
  box-shadow:
    0 10px 18px rgba(0,0,0,0.45),
    inset 2px 2px 4px rgba(255,255,255,0.9),
    inset -3px -3px 5px rgba(0,0,0,0.12);
}

.switch-hole {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b8b8b;
  box-shadow: inset 1px 1px 1px rgba(0,0,0,0.35);
  z-index: 3;
}

.top-hole {
  top: 8px;
}

.bottom-hole {
  bottom: 8px;
}

.switch-rocker {
  position: absolute;
  left: 21px;
  top: 18px;
  width: 50px;
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f8f8f8, #d9d9d9);
  box-shadow:
    0 5px 8px rgba(0,0,0,0.18),
    inset 1px 1px 2px rgba(255,255,255,0.95),
    inset -2px -2px 3px rgba(0,0,0,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  transform-origin: center center;
}

.switch-rocker.on {
  transform: translateY(3px);
  box-shadow:
    0 2px 5px rgba(0,0,0,0.16),
    inset 1px 1px 2px rgba(255,255,255,0.9),
    inset -2px -2px 4px rgba(0,0,0,0.18);
}

.old-switch:active .switch-rocker {
  transform: scale(0.98);
}

.login-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 6;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.login-wrap.hidden {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  pointer-events: none;
}

.login-wrap.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.login-card {
  position: relative;
  overflow: hidden;
  width: 450px;
  max-width: calc(100% - 32px);
  padding: 36px 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.card-light {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 190%;
  background: radial-gradient(circle at 50% 8%, rgba(255, 236, 181, 0.22), rgba(255, 210, 94, 0.11) 22%, rgba(255, 187, 50, 0.03) 42%, transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 0;
}

.card-light.on {
  opacity: 1;
}

.login-card h1,
.login-card p,
.login-card form {
  position: relative;
  z-index: 1;
}

.login-card h1 {
  color: #fff;
  text-align: center;
  font-size: 34px;
  margin-bottom: 8px;
}

.login-card p {
  color: rgba(255,255,255,0.74);
  text-align: center;
  font-size: 15px;
  margin-bottom: 26px;
}

.input-box {
  position: relative;
  margin-bottom: 18px;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.input-box input {
  width: 100%;
  border: none;
  outline: none;
  padding: 16px 48px 16px 46px;
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  transition: 0.28s ease;
}

.input-box input::placeholder {
  color: rgba(255,255,255,0.54);
}

.input-box input:focus {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 2px rgba(255, 208, 96, 0.24);
}

.password-box .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.66);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-box .toggle-password svg {
  width: 20px;
  height: 20px;
}

.hidden-eye {
  display: none;
}

.submit-btn {
  width: 100%;
  border: none;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffd44d, #ffbc00);
  color: #111;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 193, 7, 0.28);
  transition: 0.28s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: scale(0.985);
}

@media (max-width: 700px) {
  .lamp-zone {
    top: 28px;
    height: 220px;
  }

  .lamp {
    transform: translateX(-50%) scale(0.78);
    transform-origin: top center;
  }

  .page.lights-on .lamp {
    transform: translateX(-50%) scale(0.78);
  }

  .lamp-glow {
    width: 540px;
    height: 540px;
  }

  .lamp-beam {
    width: 580px;
    height: 560px;
  }

  .switch-area {
    left: 14px;
  }

  .old-switch {
    width: 82px;
    height: 120px;
  }

  .switch-rocker {
    left: 18px;
    width: 46px;
    height: 86px;
  }

  .login-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .login-card h1 {
    font-size: 28px;
  }
}