/* ── Login gate overlay ── */
body.login-locked {
  overflow: hidden;
}

#login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 90% 90%, rgba(20, 184, 166, 0.16), transparent 55%),
    linear-gradient(135deg, #0b1020 0%, #131a31 100%);
  opacity: 1;
  transition: opacity 0.35s ease;
}

#login-overlay.login-hidden {
  opacity: 0;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  animation: login-rise 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes login-rise {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.login-brand-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #14b8a6);
  color: #fff;
}

.login-brand-icon svg { width: 22px; height: 22px; }

.login-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.login-brand-title { font-size: 1rem; font-weight: 800; color: #0f172a; }
.login-brand-sub { font-size: 0.72rem; font-weight: 500; color: #64748b; }

.login-heading { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin: 0 0 0.25rem; }
.login-subheading { font-size: 0.82rem; color: #64748b; margin: 0 0 1.5rem; }

.login-field { margin-bottom: 1rem; }
.login-field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.login-input-wrap { position: relative; }

.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-field input::placeholder { color: #94a3b8; }

.login-field input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

#login-toggle-pass {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6366f1;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
#login-toggle-pass:hover { background: rgba(99, 102, 241, 0.1); }

.login-error {
  display: none;
  margin: -0.25rem 0 0.9rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}
.login-error.visible { display: block; }

.login-submit {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}
.login-submit:hover { filter: brightness(1.05); box-shadow: 0 10px 26px rgba(79, 70, 229, 0.45); }
.login-submit:active { transform: translateY(1px); }

.login-footnote {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
}
