/* ============================================
   Login Page Styles
   ============================================ */

.login-body {
  background: var(--color-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Glowing background blobs */
.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.login-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .18;
}
.login-bg-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #1a56db 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: glowPulse 8s ease-in-out infinite alternate;
}
.login-bg-glow-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  bottom: -80px; left: 10%;
  animation: glowPulse 10s ease-in-out infinite alternate-reverse;
}
@keyframes glowPulse {
  from { transform: scale(1); opacity: .14; }
  to   { transform: scale(1.2); opacity: .22; }
}

/* ---- Container ---- */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp .5s ease;
}
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ---- Logo ---- */
.login-logo {
  margin-bottom: 22px;
}
.login-logo img {
    height: auto;
    margin: auto;
}

/* ---- Badge ---- */
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  font-size: .73rem;
  font-weight: 600;
  font-family: var(--font-main);
  letter-spacing: .04em;
  margin-bottom: 18px;
}

/* ---- Title ---- */
.login-title {
  font-family: var(--font-main);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -.03em;
}
.login-subtitle {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  text-align: center;
  margin-bottom: 28px;
}

/* ---- Card ---- */
.login-card {
  background: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* ---- Error ---- */
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--border-radius-sm);
  color: #fca5a5;
  font-size: .84rem;
  margin-bottom: 18px;
  animation: shakeX .4s ease;
}
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-5px); }
  40%, 80%  { transform: translateX(5px); }
}

/* ---- Override form inputs for dark card ---- */
.login-card .form-label {
  color: rgba(255,255,255,.6);
}
.login-input {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #fff !important;
}
.login-input::placeholder { color: rgba(255,255,255,.25) !important; }
.login-input:focus {
  border-color: var(--color-primary) !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: 0 0 0 3px rgba(26,86,219,.25) !important;
}

/* Password toggle */
.input-with-toggle {
  position: relative;
}
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.35);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.toggle-password:hover { color: rgba(255,255,255,.7); }

/* Submit button */
.login-submit {
  margin-top: 4px;
  padding: 13px 24px;
  font-size: .95rem;
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
}
.login-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ---- Help text ---- */
.login-help {
  text-align: center;
  margin-top: 18px;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.login-help a {
  color: rgba(255,255,255,.65);
  font-weight: 600;
}
.login-help a:hover { color: #fff; }

/* ---- Back link ---- */
.login-back {
  margin-top: 24px;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
  transition: color var(--transition);
}
.login-back:hover { color: rgba(255,255,255,.6); }

/* ---- Demo notice ---- */
.login-demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: var(--border-radius-sm);
  color: #fcd34d;
  font-size: .82rem;
  margin-bottom: 18px;
}
.login-demo-notice svg { flex-shrink: 0; margin-top: 2px; }
.login-demo-notice strong { display: block; margin-bottom: 5px; font-weight: 700; }
.login-demo-creds {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.login-demo-creds span { font-size: .78rem; color: rgba(255,255,255,.55); }
.login-demo-creds code {
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: .8rem;
  color: #fde68a;
}
