/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  background: #080C18;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* Decorative orbs */
.login-orb {
  position: fixed; border-radius: 50%; pointer-events: none;
  filter: blur(80px); z-index: 0;
}
.login-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.18) 0%, transparent 65%);
  top: -200px; left: -150px;
  animation: orbFloat 10s ease-in-out infinite;
}
.login-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, transparent 65%);
  bottom: -150px; right: -100px;
  animation: orbFloat 13s ease-in-out infinite reverse;
}
.login-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 65%);
  top: 60%; left: 30%;
  animation: orbFloat 9s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(25px, -40px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(.97); }
}

/* Dot-grid background */
.login-page::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ===== Card ===== */
.login-card {
  position: relative; z-index: 1;
  width: 440px; max-width: 93vw;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 28px;
  padding: 44px 40px 40px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0,0,0,0.55),
    0 0 80px rgba(108,99,255,0.06);
}

/* ===== Header ===== */
.login-header { margin-bottom: 8px; }

.login-logo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
}
.login-logo-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
  box-shadow: 0 8px 28px rgba(108,99,255,0.45), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.login-logo-icon svg { width: 24px; height: 24px; }
.login-logo-meta { display: flex; flex-direction: column; gap: 4px; }
.login-logo-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.login-logo-text {
  font-size: 21px; font-weight: 800; letter-spacing: .4px;
  background: linear-gradient(135deg, #fff 30%, rgba(180,170,255,0.85) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo-badge {
  background: var(--gradient-primary);
  color: #fff; font-size: 9px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px; letter-spacing: 1.2px;
  box-shadow: 0 3px 10px rgba(108,99,255,0.4);
  vertical-align: middle; display: inline-block;
}
.login-subtitle {
  font-size: 13px; color: rgba(255,255,255,0.38);
  margin-top: 2px;
}

/* ===== Divider ===== */
.login-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 22px 0 26px;
  position: relative;
}
.login-divider::after {
  content: '';
  position: absolute;
  top: -1px; left: 20%; width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,99,255,0.4), transparent);
}

/* ===== Form inputs override for dark card ===== */
.login-card .form-label {
  color: rgba(255,255,255,0.45);
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 6px;
}
.login-card .input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  padding: 11px 14px;
  font-size: 13.5px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.login-card .input:focus {
  border-color: rgba(108,99,255,0.7);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.18);
}
.login-card .input::placeholder { color: rgba(255,255,255,0.2); }
.login-card .form-group { margin-bottom: 18px; }

/* ===== Input wrap (password eye) ===== */
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-eye {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 4px;
  border-radius: 6px; transition: color .15s, background .15s;
}
.input-eye:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }

/* ===== Login button ===== */
.login-btn {
  width: 100%; padding: 13px;
  background: var(--gradient-primary);
  color: #fff; border: none; border-radius: 14px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 8px 28px rgba(108,99,255,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  margin-top: 4px; font-family: var(--font-sans);
}
.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(108,99,255,0.55), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.login-btn:active:not(:disabled) { transform: translateY(0); }
.login-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ===== Spinner ===== */
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  display: none; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Error ===== */
.login-error {
  background: rgba(239,68,68,0.12);
  color: #FC8181;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  padding: 10px 14px; font-size: 13px;
  margin-top: 14px; display: none;
  text-align: center; line-height: 1.5;
}
.login-error.show { display: block; }

/* ===== Shake ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%, 55%  { transform: translateX(-7px); }
  35%, 75%  { transform: translateX(7px); }
}
.shake { animation: shake 0.38s ease; }
