/* ==========================================================================
   login.css — página de login / criação de conta
   Reaproveita a paleta de style.css (azul rgb(24,21,151) + cartões claros).
   ========================================================================== */

.login-wrapper {
  max-width: 460px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 1.75rem;
  color: #222;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.login-wrapper h2 {
  color: rgb(24, 21, 151);
  text-align: center;
  margin-bottom: 0.25rem;
}

.login-subtitulo {
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.login-abas {
  display: flex;
  border-radius: 999px;
  background: #eee;
  padding: 4px;
  margin-bottom: 1.25rem;
}

.login-aba {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: #555;
  font-size: 0.9rem;
}

.login-aba.ativa {
  background: rgb(24, 21, 151);
  color: #fff;
}

.login-formulario {
  display: none;
  flex-direction: column;
  gap: 0.7rem;
}

.login-formulario.visivel {
  display: flex;
}

.login-formulario input {
  padding: 0.65rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
}

.login-formulario input:focus {
  outline: none;
  border-color: rgb(24, 21, 151);
  box-shadow: 0 0 0 3px rgba(24, 21, 151, 0.15);
}

.btn-login-principal {
  background: rgb(24, 21, 151);
  color: #fff;
  border: none;
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
}

.btn-login-principal:hover {
  background: #100e63;
}

.login-divisor {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.1rem 0;
  color: #999;
  font-size: 0.8rem;
}

.login-divisor::before,
.login-divisor::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.login-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
}

.btn-social:hover {
  background: #f5f5f5;
}

.btn-social .icone-social {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.icone-google {
  background: #4285F4;
}

.icone-spotify {
  background: #1DB954;
}

.login-aviso {
  font-size: 0.78rem;
  color: #666;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
}

.painel-sessao {
  text-align: center;
}

.painel-sessao .avatar-sessao {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(24, 21, 151);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 0.75rem;
}

.painel-sessao .status-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: #f4f4f8;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.status-badge.on {
  background: #d4f4dd;
  color: #17843c;
}

.status-badge.off {
  background: #f1f1f1;
  color: #888;
}

.btn-sair {
  background: none;
  border: 1px solid #dc3545;
  color: #dc3545;
  border-radius: 8px;
  padding: 0.55rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  width: 100%;
}

.btn-sair:hover {
  background: #dc3545;
  color: #fff;
}

.player-spotify-embed {
  margin-top: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
}

/* ---- Mini player fixo (aparece em todas as páginas quando conectado) ---- */
#mini-player-spotify {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 300px;
  max-width: calc(100vw - 36px);
  background: #101010;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  z-index: 1040;
  display: none;
  overflow: hidden;
}

#mini-player-spotify.visivel {
  display: block;
}

#mini-player-spotify .mini-player-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1DB954;
  color: #06210f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
}

#mini-player-spotify .mini-player-cabecalho button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #06210f;
}

#nav-conta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#nav-conta button.link-header {
  border: none;
  cursor: pointer;
}
