* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #121212;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: background 0.5s ease;
}

/* Container to center everything relative to the lamp */
.container {
  position: relative;
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Lamp Styling --- */
.lamp-container {
  position: absolute;
  top: -250px; /* Hangs down from the top */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.lamp-wire {
  width: 4px;
  height: 120px;
  background: #333;
}

.lamp-head {
  width: 60px;
  height: 40px;
  background: #444;
  border-radius: 50% 50% 0 0;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.1s ease;
}

.lamp-head:active {
  transform: translateY(3px); /* Click behavior mimicking a physical toggle pull */
}

.bulb {
  width: 24px;
  height: 24px;
  background: #555;
  border-radius: 50%;
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* --- Light Beam Cone Shape --- */
.light-beam {
  position: absolute;
  top: 155px; /* Base of the bulb */
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  border-right: 0 solid transparent;
  border-bottom: 0 solid rgba(255, 235, 100, 0);
  pointer-events: none;
  transform-origin: top center;
  transition: all 0.5s ease;
}

/* --- Active/On State Animations --- */
body.light-on {
  background-color: #1a1a1e;
}

body.light-on .bulb {
  background: #ffeb3b;
  box-shadow: 0 0 30px #ffeb3b, 0 0 60px #ffeb3b;
}

body.light-on .light-beam {
  /* Creates a translucent triangular cone using borders */
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 450px solid rgba(255, 235, 100, 0.12);
  filter: blur(15px);
}

/* --- Login Form Card Styling --- */
.login-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-radius: 16px;
  width: 100%;
  margin-top: 100px;
  backdrop-filter: blur(5px);
  opacity: 0.1;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.login-card h2 {
  color: #666;
  margin-bottom: 25px;
  font-weight: 500;
  transition: color 0.4s ease;
}

/* Form appears fully lit and transitions upward when light turns on */
body.light-on .login-card {
  opacity: 1;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 235, 100, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

body.light-on .login-card h2 {
  color: #fff;
}

/* Form inputs & Button styling */
.input-group {
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  background: #222;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition: border 0.3s ease;
}

body.light-on .input-group input:focus {
  border-color: #ffeb3b;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: #333;
  color: #888;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.light-on .login-btn {
  background: #ffeb3b;
  color: #121212;
  box-shadow: 0 4px 15px rgba(255, 235, 100, 0.3);
}

body.light-on .login-btn:hover {
  background: #fdd835;
}
