/* Scoped login widget styles for root index.html (does not touch body or existing player layout) */

.auth-widget {
  position: static;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.auth-widget * {
  box-sizing: border-box;
}

.auth-widget .auth-panel {
  pointer-events: auto;
  background: rgba(17, 24, 39, 0.88);
  color: white;
  border-radius: 10px;
  padding: 10px;
  width: 220px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-widget .hidden {
  display: none !important;
}

.practice-btn-base {
  box-sizing: border-box;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(107, 114, 128, 0.8);
  background: transparent;
  color: rgba(209, 213, 219, 0.95);
}

.auth-widget .practice-btn-base {
  width: 100%;
}

.practice-btn-base:hover {
  filter: brightness(1.1);
}

.practice-btn-state-2,
.practice-btn-state-3 {
  color: #111827;
}

.auth-widget .email-container {
  margin-top: 10px;
  background-color: rgba(31, 41, 55, 0.9);
  border-radius: 8px;
  padding: 10px;
}

.auth-widget .email-table {
  width: 100%;
  font-size: 12px;
  color: white;
  border-collapse: collapse;
}

.auth-widget .email-label {
  padding: 6px 8px;
  color: rgba(209, 213, 219, 0.95);
}

.auth-widget .email-value {
  padding: 6px 8px;
  font-weight: 600;
  text-align: right;
}

.auth-widget #logout-btn {
  margin-top: 10px;
  width: 100%;
  border: 1px solid rgba(248, 113, 113, 0.9);
  color: rgba(252, 165, 165, 0.95);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: transparent;
  cursor: pointer;
}

.auth-widget #logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.9);
  color: #111827;
}

.auth-widget .modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  pointer-events: auto;
}

.auth-widget .modal-content {
  background-color: rgba(31, 41, 55, 0.98);
  padding: 16px;
  border-radius: 10px;
  color: white;
  text-align: center;
  max-width: 280px;
  width: calc(100% - 32px);
}

.auth-widget .input-label {
  display: block;
  margin-bottom: 10px;
  text-align: left;
}

.auth-widget #email-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  background-color: rgba(55, 65, 81, 1);
  color: white;
  border-radius: 8px;
  border: none;
  font-size: 16px; /* prevents iOS zoom */
}

.auth-widget #solicitar-btn,
.auth-widget #pending-volver-btn {
  width: 100%;
  position: relative;
  color: white;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.auth-widget #solicitar-btn {
  background-color: rgba(59, 130, 246, 0.95);
}

.auth-widget #solicitar-btn:hover {
  filter: brightness(1.05);
}

.auth-widget #pending-volver-btn {
  background-color: rgba(234, 179, 8, 0.95);
  color: #111827;
}

.progress-bar,
.progress-bar-yellow,
.progress-bar-blue {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  transition: all 1s;
  width: 0;
}

.progress-bar {
  background-color: rgba(234, 179, 8, 0.95);
}

.progress-bar-yellow {
  background-color: rgba(234, 179, 8, 0.95);
}

.progress-bar-blue {
  background-color: rgba(59, 130, 246, 0.95);
}

.btn-text {
  position: relative;
  z-index: 10;
}
