/* 认证界面样式 */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #475569;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.auth-modal-subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #334155;
  padding: 0.25rem;
  border-radius: 0.75rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab:hover {
  color: #f8fafc;
}

.auth-tab.active {
  background: #3b82f6;
  color: white;
}

.auth-form-group {
  margin-bottom: 1rem;
}

.auth-form-label {
  display: block;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 0.75rem;
  color: #f8fafc;
  font-size: 1rem;
  transition: all 0.2s;
}

.auth-form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-form-input::placeholder {
  color: #64748b;
}

.auth-form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.auth-btn-primary {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.auth-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-switch-text {
  text-align: center;
  margin-top: 1.25rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.auth-switch-link {
  color: #60a5fa;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

.auth-switch-link:hover {
  color: #93c5fd;
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.auth-user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

.auth-user-details {
  flex: 1;
}

.auth-user-name {
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-user-phone {
  color: #94a3b8;
  font-size: 0.8rem;
}

.auth-btn-secondary {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #94a3b8;
  border: 2px solid #334155;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn-secondary:hover {
  border-color: #64748b;
  color: #cbd5e1;
}

.auth-btn-logout {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.auth-btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}

.auth-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.auth-history-title {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-history-list {
  max-height: 200px;
  overflow-y: auto;
}

.auth-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.auth-history-item:last-child {
  margin-bottom: 0;
}

.auth-history-score {
  font-weight: 700;
  color: #10b981;
}

.auth-history-date {
  color: #64748b;
  font-size: 0.8rem;
}

.auth-history-result {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
}

.auth-history-result.win {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.auth-history-result.lose {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.auth-history-result.partial {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

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