/* Dedicated login.html page (full document, not an overlay on the main app). */
.firebase-auth-page-body {
  margin: 0;
  min-height: 100vh;
  color: #f8fafc;
  background-color: #2d4a35;
  background-image: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.28) 0%,
      rgba(15, 23, 42, 0.42) 100%
    ),
    url("backgrounds/login-playroom.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.firebase-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

html.firebase-auth-login-page {
  overflow: auto;
}

.firebase-auth-card {
  width: min(400px, 100%);
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.firebase-auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.firebase-auth-sub {
  margin: 0 0 18px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
}

.firebase-auth-sub code {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.firebase-auth-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 10px 0 4px;
}

.firebase-auth-card input[type="email"],
.firebase-auth-card input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #f1f5f9;
  font-size: 0.95rem;
}

.firebase-auth-google {
  width: 100%;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.firebase-auth-google:hover {
  filter: brightness(1.03);
}

.firebase-auth-divider {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 4px 0 12px;
}

.firebase-auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.firebase-auth-row button {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}

.firebase-auth-row button:first-child {
  background: #2563eb;
  color: #fff;
}

.firebase-auth-row button.secondary {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.firebase-auth-error {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: #fecaca;
  line-height: 1.35;
}

