/* ================== Login sahifasi ================== */
.login-page { min-height: 100vh; overflow-x: hidden; color: #fff; background: #0a1430; }
/* O'z rasmingizni public/assets/img/login-bg.jpg sifatida qo'ying — avtomatik ishlatiladi */
.login-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(76, 176, 42, 0.45), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(31, 111, 235, 0.55), transparent 45%),
    linear-gradient(135deg, rgba(10, 20, 48, 0.86), rgba(14, 40, 100, 0.82)),
    url('/assets/img/login-bg.jpg') center / cover no-repeat,
    linear-gradient(135deg, #0a1430, #123a8c 60%, #1f6f3a);
  animation: bgShift 18s ease-in-out infinite alternate;
  background-size: 140% 140%, 140% 140%, 100% 100%, cover, 100% 100%;
}
@keyframes bgShift { to { background-position: 30% 10%, 70% 90%, center, center, center; } }
#particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

.floaters { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fl { position: absolute; opacity: 0.85; animation: float 9s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25)); }
.fl svg { width: 100%; height: auto; display: block; }
.f1 { width: 110px; left: 6%; top: 14%; animation-duration: 11s; transform: rotate(-12deg); }
.f2 { width: 150px; left: 42%; top: 6%; animation-duration: 8s; }
.f3 { width: 90px; right: 8%; top: 12%; animation-duration: 10s; }
.f4 { width: 64px; left: 12%; bottom: 14%; animation-duration: 7s; }
.f9 { width: 110px; right: 12%; bottom: 10%; animation-duration: 12s; }
.letter {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(4px);
}
.f5 { left: 30%; bottom: 8%; animation-duration: 9s; }
.f6 { left: 52%; bottom: 18%; animation-duration: 13s; }
.f7 { right: 36%; top: 22%; animation-duration: 10s; background: rgba(76, 176, 42, 0.55); }
.f8 { left: 3%; top: 52%; animation-duration: 8.5s; }
@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -22px; rotate: 6deg; }
}

.login-theme { position: fixed; top: 18px; right: 18px; z-index: 5; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); }
.login-theme:hover { background: rgba(255, 255, 255, 0.22); }
.login-page .theme-toggle .sun { display: none; }
:root[data-theme='dark'] .login-page .theme-toggle .sun { display: block; }

.login-wrap {
  position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: 60px; max-width: 1180px; margin: 0 auto; padding: 40px 28px;
}
.login-intro { animation: slideUp 0.9s var(--ease) both; }
.intro-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 13px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px);
}
.intro-badge svg { width: 16px; height: 16px; color: #ffcf4d; }
.login-intro h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; margin: 18px 0 14px; font-weight: 800; letter-spacing: -1.5px; }
.login-intro h1 span { background: linear-gradient(90deg, #6bd043, #b9f28f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-intro p { font-size: 17px; opacity: 0.85; max-width: 480px; margin: 0 0 22px; }
.intro-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.intro-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; opacity: 0.92; }
.intro-list svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); }

.glass-card {
  position: relative; padding: 34px 32px 26px; border-radius: 26px; color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: cardIn 0.9s var(--ease) 0.15s both; max-width: 460px; width: 100%; justify-self: end;
}
.glass-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(107, 208, 67, 0.8), transparent 40%, transparent 60%, rgba(59, 139, 255, 0.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.login-logo { background: #fff; border-radius: 18px; padding: 14px 18px; display: flex; justify-content: center; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); }
.login-logo img { max-width: 100%; height: 64px; object-fit: contain; }
.login-logo .text-logo { font-size: 36px; }
.glass-card h2 { margin: 22px 0 4px; font-size: 24px; font-weight: 800; }
.glass-card .sub { margin: 0 0 20px; opacity: 0.8; }
.glass-card form { display: grid; gap: 16px; }
.glass-card .field label { color: rgba(255, 255, 255, 0.9); }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: 0.75; }
.glass-card .input {
  padding: 13px 44px; background: rgba(255, 255, 255, 0.12); border: 1.5px solid rgba(255, 255, 255, 0.28); color: #fff; border-radius: 13px;
}
.glass-card .input::placeholder { color: rgba(255, 255, 255, 0.55); }
.glass-card .input:focus { border-color: #6bd043; box-shadow: 0 0 0 4px rgba(107, 208, 67, 0.25); background: rgba(255, 255, 255, 0.18); }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #fff; opacity: 0.75; cursor: pointer; padding: 6px; border-radius: 8px; }
.eye:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.login-btn { padding: 14px; font-size: 16px; border-radius: 14px; margin-top: 4px; background: linear-gradient(135deg, #1f6feb, #22a0c8 50%, #4cb02a); background-size: 200% 200%; animation: btnGrad 6s ease infinite; }
@keyframes btnGrad { 50% { background-position: 100% 50%; } }
.login-btn svg { transition: transform 0.2s; }
.login-btn:hover svg { transform: translateX(4px); }
.login-error { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(229, 72, 77, 0.22); border: 1px solid rgba(255, 120, 120, 0.45); font-weight: 600; font-size: 13.5px; }
.login-error svg { width: 18px; height: 18px; flex-shrink: 0; }
.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.glass-card .foot { text-align: center; font-size: 12px; opacity: 0.6; margin: 20px 0 0; }
.login-success .glass-card { animation: cardOut 0.6s var(--ease) forwards; }
@keyframes cardOut { to { opacity: 0; transform: scale(1.04) translateY(-10px); filter: blur(4px); } }

:root[data-theme='light'] .login-bg { filter: saturate(1.05) brightness(1.08); }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; gap: 26px; padding: 70px 16px 30px; }
  .login-intro { text-align: center; }
  .login-intro p { margin: 0 auto 10px; }
  .intro-list { display: none; }
  .glass-card { justify-self: center; padding: 26px 20px 20px; }
  .login-intro h1 { font-size: 32px; }
  .f2, .f6, .f9 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fl, .login-bg, .login-btn { animation: none; }
}
