@import url('login-bulb-base.css');

html,
body.login-bulb {
  min-height: 100vh;
  margin: 0;
}

body.login-bulb {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Georgia, 'Times New Roman', serif;
  transition: background 0.35s ease;
}

body.login-bulb .design-float {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: calc(100vw - 32px);
}

body.login-bulb .design-float a {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

body.login-bulb .design-float a:hover,
body.login-bulb .design-float a:focus {
  background: #fff;
  color: #111;
  text-decoration: none;
}

body.login-bulb .bulb-hint {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 40;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.85);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.login-bulb .toggle {
  left: 42%;
}

body.login-bulb .doorway {
  left: calc(42% + (var(--size) * 0.5));
}

body.login-bulb .bulb-login-panel {
  position: fixed;
  right: max(24px, 4vw);
  top: 50%;
  transform: translateY(-50%) translateX(24px);
  z-index: 30;
  width: min(340px, calc(100vw - 32px));
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  font-family: system-ui, sans-serif;
}

body.login-bulb .bulb-login-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

body.login-bulb .bulb-login-panel .logo {
  text-align: center;
  margin-bottom: 10px;
}

body.login-bulb .bulb-login-panel .logo img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
}

body.login-bulb .bulb-login-panel h2 {
  margin: 0 0 12px;
  text-align: center;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
}

body.login-bulb .field {
  margin-bottom: 12px;
}

body.login-bulb .field label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin-bottom: 5px;
  position: static;
  opacity: 1;
  height: auto;
  width: auto;
  z-index: auto;
}

body.login-bulb .field input,
body.login-bulb .field .form-control {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 14px;
  outline: none;
  position: static;
  left: auto;
  transform: none;
  box-shadow: none;
}

body.login-bulb .field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body.login-bulb .field input:focus {
  border-color: #f5e0a3;
  background: rgba(255, 255, 255, 0.18);
}

body.login-bulb .field.code.hide {
  display: none !important;
}

body.login-bulb .btn-bulb-login {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px;
  margin-top: 4px;
  font-weight: 700;
  cursor: pointer;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f5e0a3, #fff8e1);
}

body.login-bulb .btn-bulb-login.loading {
  opacity: 0.7;
  pointer-events: none;
}

body.login-bulb .reset-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

body.login-bulb .alert {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

body.login-bulb .alert-danger {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}

body.login-bulb .alert-warning {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
}

body.login-bulb .login-copyright {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  line-height: 1.45;
}

body.login-bulb .login-copyright a {
  color: #f5e0a3;
  cursor: pointer;
}

body.login-bulb .modal {
  color: #1f2937;
}

body.login-bulb .modal .form-control {
  background: #fff;
  color: #111;
  position: static;
  transform: none;
  left: auto;
  height: auto;
  width: 100%;
}

@media (max-width: 900px) {
  body.login-bulb {
    overflow-y: auto;
    align-items: flex-start;
    padding: 80px 0 40px;
  }

  body.login-bulb .toggle {
    left: 50%;
    top: 38%;
    --size: 22vmin;
  }

  body.login-bulb .doorway {
    left: calc(50% + (var(--size) * 0.5));
  }

  body.login-bulb .bulb-login-panel {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 52vh auto 0;
  }

  body.login-bulb .bulb-login-panel.is-visible {
    transform: none;
  }
}
