@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* =========================================================
   BigBros Admin - Login styles
   Scoped under #loginScreen so it doesn't affect the app.
   ========================================================= */

#loginScreen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1c1c1c, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  font-family: 'Poppins', sans-serif;
}

/* Decorative orbs */
#loginScreen .bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
#loginScreen .orb {
  position: absolute;
  filter: blur(22px);
  opacity: 0.25;
  border-radius: 999px;
}
#loginScreen .o1 { width: 260px; height: 260px; left: -80px;  top: 8%;       background: #ffcc00; }
#loginScreen .o2 { width: 320px; height: 320px; right: -120px; top: 25%;      background: #3aa0ff; }
#loginScreen .o3 { width: 220px; height: 220px; left: 20%;    bottom: -110px; background: #ff4fd8; }

/* Card */
#loginScreen .login-card {
  position: relative;
  z-index: 1;
  width: calc(100% - 36px);
  max-width: 420px;
  padding: 38px 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  animation: loginFadeIn 0.8s ease;
  color: #fff;
}

/* Logo */
#loginScreen .login-card .logo {
  width: 110px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: block;
}

/* Titles */
#loginScreen .login-card h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}
#loginScreen .login-card h2 {
  font-size: 14px;
  font-weight: 300;
  margin: 6px 0 26px;
  color: rgba(255, 255, 255, 0.72);
}

/* Floating-label fields */
#loginScreen .field {
  position: relative;
  margin-bottom: 18px;
  text-align: left;
}
#loginScreen .field input {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
}
#loginScreen .field label {
  position: absolute;
  top: 50%;
  left: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: 0.25s ease;
  display: block;
}
#loginScreen .field input:focus + label,
#loginScreen .field input:valid + label {
  top: -9px;
  left: 10px;
  background: rgba(0, 0, 0, 0.85);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #ffcc00;
}

/* Submit button */
#loginScreen button[type="submit"] {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
}
#loginScreen button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(255, 204, 0, 0.35);
}
#loginScreen button[type="submit"]:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner inside button */
#loginScreen .btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: rgba(0, 0, 0, 0.85);
  display: none;
  animation: loginSpin 0.8s linear infinite;
}
#loginScreen button.loading .btn-spinner { display: inline-block; }
#loginScreen button.loading .btn-text   { opacity: 0.9; }

/* Message (error/success) */
#loginScreen .msg {
  margin-top: 12px;
  min-height: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
#loginScreen .msg.error   { color: #ff5a6a; }
#loginScreen .msg.success { color: #55ffb0; }

/* Footer */
#loginScreen .footer {
  margin-top: 22px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes loginSpin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 360px) {
  #loginScreen .login-card { padding: 30px 18px; border-radius: 16px; }
  #loginScreen .login-card .logo { width: 96px; }
  #loginScreen .login-card h1 { font-size: 20px; }
  #loginScreen .login-card h2 { font-size: 13px; }
}
