/* FriendsQuest Auth Panel Styles */

.auth-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1002;
  overflow-y: auto;
  border-left: 5px solid #6c4bc1;
}

.auth-panel-inner {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-panel.active {
  transform: translateX(0);
}

.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.auth-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #6c4bc1;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  border-bottom: 1px solid #eee;
}

.auth-tab {
  background: transparent;
  border: none;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: #666;
  transition: all 0.2s ease;
}

.auth-tab.active {
  border-color: #6c4bc1;
  font-weight: bold;
  color: #000;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.auth-form.active {
  display: flex;
}

.auth-form label {
  font-weight: 600;
  font-size: 14px;
}

.auth-form input,
.auth-form select {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f8f8f8;
  transition: border-color 0.2s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: #6c4bc1;
  background: #fff;
}

.auth-form button {
  background: #6c4bc1;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.auth-form button:hover {
  background: #5538a6;
}

.auth-trigger {
  padding: 10px 20px;
  font-size: 16px;
  background: #6c4bc1;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}

.auth-trigger:hover {
  background: #5538a6;
}

.error-message {
  color: #d03c3c;
  font-size: 0.85em;
  margin-top: -8px;
  margin-bottom: 10px;
}
