/* ════════════════════════════════════════════════════════
   ACCESS.CSS — Lamp Login Page (User's Design)
   ════════════════════════════════════════════════════════ */

/* ─── Page ─── */
body {
  margin: 0;
  background: #050505;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 60px 0 120px;
  box-sizing: border-box;
}

/* ─── Back Button ─── */
.back-btn {
  position: fixed;
  top: 24px; left: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  text-decoration: none;
}
.back-btn:hover { color: #a78bfa; border-color: rgba(167,139,250,0.4); }

/* ─── Lamp Unit ─── */
.lamp-unit {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Shade */
.shade {
  width: 120px; height: 60px;
  background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  border-radius: 60px 60px 0 0;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.shade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  border-radius: inherit;
}

/* Pole */
.pole {
  width: 5px; height: 140px;
  background: linear-gradient(180deg, #1c1c1c, #111);
  border-radius: 2px;
}

/* Base */
.base {
  width: 90px; height: 10px;
  background: linear-gradient(90deg, #111, #1c1c1c, #111);
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ─── Pull String ─── */
.string {
  width: 20px; height: 75px;
  position: absolute;
  left: calc(50% + 45px);
  top: 52px;
  cursor: pointer;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.string::before {
  content: '';
  width: 2px; height: 55px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border-radius: 1px;
}
.string::after {
  content: '';
  width: 14px; height: 14px;
  background: #252525;
  border-radius: 50%;
  margin-top: -2px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.string:hover::before { background: linear-gradient(180deg, rgba(167,139,250,0.6), rgba(167,139,250,0.2)); }
.string:hover::after {
  background: #a78bfa;
  box-shadow: 0 0 12px rgba(167,139,250,0.6);
  transform: scale(1.15);
}

/* ─── Light States ─── */
/* Lamp ON: warm shade glow */
body.on .shade {
  background: linear-gradient(180deg, #ffe880 0%, #ffcc00 100%);
  box-shadow: 0 -8px 40px rgba(255, 230, 80, 0.45), inset 0 -4px 20px rgba(255,255,150,0.2);
}
body.on .string::after { background: #555; }

/* ─── Light Beam ─── */
.beam {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 650px;
  background: radial-gradient(ellipse at top, rgba(255, 240, 120, 0.16) 0%, rgba(255,220,80,0.06) 30%, transparent 70%);
  clip-path: polygon(38% 0%, 62% 0%, 100% 100%, 0% 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1;
}
body.on .beam { opacity: 1; }

/* ─── Secret Container ─── */
.secret-container {
  position: absolute;
  top: 210px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: 360px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 20;
}
body.on .secret-container {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* Card wrapper */
.card-inner {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* Card header */
.card-header {
  padding: 22px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#pageTitle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffe066;
  transition: color 0.4s;
  margin: 0;
}
body.state-2 #pageTitle { color: #ff5555; }

.card-step {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
}

/* Progress dots */
.card-dots {
  display: flex;
  gap: 5px;
  padding: 10px 28px 0;
}
.card-dot {
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: all 0.4s;
  width: 22px;
}
.card-dot.active { background: #ffe066; width: 34px; }
body.state-2 .card-dot.active { background: #ff5555; }

/* ─── Form Slider ─── */
.form-slider {
  display: flex;
  width: 720px;
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.4, 1);
}
body.state-2 .form-slider { transform: translateX(-360px); }

.form-card {
  width: 360px;
  padding: 20px 28px 28px;
  box-sizing: border-box;
}

.sub-form { display: none; }
.sub-form.active { display: block; }

/* ─── Inputs ─── */
.form-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 12px 0 5px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  color: #f0f0f8;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.form-input:focus {
  border-color: rgba(255, 224, 102, 0.4);
  background: rgba(255,224,102,0.04);
  box-shadow: 0 0 0 3px rgba(255,224,102,0.07);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(255,255,255,0.18);
  font-size: 0.82rem;
}
.form-textarea {
  height: 80px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  resize: none;
  line-height: 1.5;
}
.form-textarea:focus {
  border-color: rgba(255, 85, 85, 0.4);
  background: rgba(255,85,85,0.04);
  box-shadow: 0 0 0 3px rgba(255,85,85,0.07);
}

/* ─── Buttons ─── */
.form-btn {
  width: 100%;
  padding: 12px;
  margin-top: 14px;
  border: none;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.form-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.form-btn:hover::after { opacity: 1; }
.form-btn:hover { transform: translateY(-1px); }
.form-btn:active { transform: translateY(0); }

.btn-login {
  background: linear-gradient(135deg, rgba(255,224,102,0.18), rgba(255,180,0,0.1));
  border: 1px solid rgba(255,224,102,0.35);
  color: #ffe066;
  box-shadow: 0 0 20px rgba(255,224,102,0.1);
}
.btn-login:hover { box-shadow: 0 0 28px rgba(255,224,102,0.22); }

.btn-register {
  background: linear-gradient(135deg, rgba(74,222,128,0.14), rgba(34,197,94,0.08));
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
  box-shadow: 0 0 16px rgba(74,222,128,0.08);
}
.btn-register:hover { box-shadow: 0 0 24px rgba(74,222,128,0.18); }

.btn-pgp {
  background: linear-gradient(135deg, rgba(255,85,85,0.18), rgba(200,50,50,0.1));
  border: 1px solid rgba(255,85,85,0.35);
  color: #ff5555;
  box-shadow: 0 0 16px rgba(255,85,85,0.1);
}
.btn-pgp:hover { box-shadow: 0 0 26px rgba(255,85,85,0.22); }

.btn-pgp-reg {
  background: linear-gradient(135deg, rgba(255,170,0,0.16), rgba(200,120,0,0.08));
  border: 1px solid rgba(255,170,0,0.3);
  color: #ffaa00;
  box-shadow: 0 0 14px rgba(255,170,0,0.08);
}
.btn-pgp-reg:hover { box-shadow: 0 0 22px rgba(255,170,0,0.2); }

/* Toggle links */
.link-text {
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 12px;
  cursor: pointer;
  color: rgba(255,255,255,0.22);
  text-align: center;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}
.link-text:hover { color: rgba(255,255,255,0.6); }

/* Response message */
.form-response {
  font-size: 0.75rem;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  display: none;
  line-height: 1.5;
  text-align: center;
}
.form-response.show { display: block; }
.form-response.success {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  color: #4ade80;
}
.form-response.error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: #f87171;
}

/* PGP challenge box */
.pgp-challenge-wrap { display: none; margin-top: 10px; }
.pgp-challenge-wrap.show { display: block; }
.pgp-challenge-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.pgp-challenge-box {
  padding: 8px;
  background: rgba(255,85,85,0.05);
  border: 1px solid rgba(255,85,85,0.15);
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  max-height: 60px;
  overflow-y: auto;
  word-break: break-all;
  line-height: 1.4;
}

/* ─── Table (floor) ─── */
.table-floor {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(180deg, #070707 0%, #050505 100%);
  border-top: 1px solid rgba(255,255,255,0.04);
  z-index: 0;
}
.table-floor::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
